
  -spec float_to_binary(Float, Options) -> binary()
                           when
                               Float :: float(),
                               Options :: [Option],
                               Option ::
                                   {decimals, Decimals :: 0..253} |
                                   {scientific, Decimals :: 0..249} |
                                   compact | short.

Since:
  OTP R16B

  Returns a binary corresponding to the text representation of 
  Float using fixed decimal point formatting. Options behaves in
  the same way as float_to_list/2. Examples:

    > 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">>
