14 lines
261 B
Ruby
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
|