module BSON::Float
def to_bson(buffer = ByteBuffer.new)
- Since: - 2.0.0
Other tags:
- See: http://bsonspec.org/#/specification -
Returns:
-
(BSON::ByteBuffer)
- The buffer with the encoded object.
Other tags:
- Example: Get the floating point as encoded BSON. -
def to_bson(buffer = ByteBuffer.new) buffer.put_double(self) end