rpl.rb/lib/core/trig.rb
Gwenhael Le Moine d537087088
merge
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
2021-12-07 16:17:28 +01:00

13 lines
234 B
Ruby

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