K
KM
A literal number with a decimal point in it becomes a Float, e.g.
irb(main):002:0> 3.0.class
=> Float
Is there a way to make a literal like '3.0' become something else,
e.g. a BigDecimal, automatically?
irb(main):002:0> 3.0.class
=> Float
Is there a way to make a literal like '3.0' become something else,
e.g. a BigDecimal, automatically?