Class representing a Real number Object. PDF real numbers are arbitrary precision numbers, depending on architectures.
Creates a new Real from a Ruby Float.
[Source]
# File sources/parser/numeric.rb, line 154 154: def initialize(f = 0) 155: 156: unless f.is_a?(Float) 157: raise TypeError, "Expected type Float, received #{f.class}." 158: end 159: 160: super(f) 161: end
[Validate]