Add Float#pack_float32
and Float#pack_float64
methods
#431
Labels
binary
Binary data
core_ext
Core Extension
feature
New Feature
help-wanted
Extra attention is needed
Add methods for easily packing a Float into a
float32
orfloat64
C type. These methods should callpack
with the C type and**kwargs
.Float#pack_float32
Float#pack_float64
The following methods should not be passed
**kwargs
as they are tied to little-endian or big-endian:Float#pack_float32_le
Float#pack_float64_le
Float#pack_float32_be
Float#pack_float64_be
Alias the
*_be
to*_ne
or*_net
?The documentation and specs can be copied from
Float#pack
.The text was updated successfully, but these errors were encountered: