narrow32bit(f)
Convert to single-precision 32-bit floating point value.
# File lib/xsd/datatypes.rb, line 352 def narrow32bit(f) if f.nan? || f.infinite? f elsif f.abs < MIN_POSITIVE_SINGLE XSDFloat.positive?(f) ? POSITIVE_ZERO : NEGATIVE_ZERO else f end end