rpl.rb/lib/core/logs.rb

17 lines
302 B
Ruby
Raw Normal View History

2021-12-02 15:33:22 +01:00
module Rpl
2021-12-15 13:33:06 +01:00
module Lang
module Core
module_function
2021-12-02 15:33:22 +01:00
2021-12-15 13:33:06 +01:00
# Euler constant
def e( stack, dictionary )
stack << { type: :numeric,
base: 10,
value: BigMath.E( Rpl::Core.precision ) }
2021-12-15 13:33:06 +01:00
[stack, dictionary]
end
2021-12-02 15:33:22 +01:00
end
end
end