
[;1m  float_to_binary(Float, Options)[0m

[;;4mSince[0m:
  OTP R16B

  Returns a binary corresponding to the text representation of [;;4m[0m
  [;;4mFloat[0m using fixed decimal point formatting.

  [;;4mOptions[0m behaves in the same way as [;;4mfloat_to_list/2[0m.

  For example:

    > float_to_binary(7.12, [{decimals, 4}]).
    <<"7.1200">>
    > float_to_binary(7.12, [{decimals, 4}, compact]).
    <<"7.12">>
    > float_to_binary(7.12, [{scientific, 3}]).
    <<"7.120e+00">>
    > float_to_binary(7.12, [short]).
    <<"7.12">>
    > float_to_binary(0.1+0.2, [short]).
    <<"0.30000000000000004">>
    > float_to_binary(0.1+0.2)
    <<"3.00000000000000044409e-01">>
