Help for this page

Select Code to Download


  1. or download this
    f  A single-precision float in native format.
    d  A double-precision float in native format.
    
    ...
         (Long doubles are available only if your system supports
          long double values. Raises an exception otherwise.              
    +(* WRONG see demo)
          Note that there are different long double formats.)
    
  2. or download this
    main::(-e:1):    0
      DB<1> say unpack "B*", pack "f", 1/3
    ...
    
      DB<5> use warnings; say unpack "B*", pack "D", 1/3         # NO EXCE
    +PTION RAISED
    0000000010101000101010101010101010101010101010101010101010101010111111
    +0100111111000000000000000000000000000000000000000000000000