14 lines
240 B
Ruby
14 lines
240 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Lang
|
|
module Core
|
|
module_function
|
|
|
|
# Euler constant
|
|
def e
|
|
@stack << { type: :numeric,
|
|
base: 10,
|
|
value: BigMath.E( @precision ) }
|
|
end
|
|
end
|
|
end
|