rpl.rb/lib/core/trig.rb
2021-12-07 16:46:33 +01:00

14 lines
261 B
Ruby

module Rpl
module Core
module_function
# pi constant
def pi( stack, dictionary )
stack << { type: :numeric,
base: 10,
value: BigMath.PI( Rpl::Core.precision ) }
[stack, dictionary]
end
end
end