2021-12-02 15:33:22 +01:00
|
|
|
module Rpl
|
|
|
|
module Core
|
|
|
|
module_function
|
|
|
|
|
|
|
|
# pi constant
|
2021-12-07 16:46:33 +01:00
|
|
|
def pi( stack, dictionary )
|
2021-12-02 15:33:22 +01:00
|
|
|
stack << { type: :numeric,
|
|
|
|
base: 10,
|
|
|
|
value: BigMath.PI( Rpl::Core.precision ) }
|
2021-12-07 16:46:33 +01:00
|
|
|
|
|
|
|
[stack, dictionary]
|
2021-12-02 15:33:22 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|