develooper Front page | perl.beginners | Postings from September 2009

Re: decimal to binary?

Thread Previous | Thread Next
Uri Guttman
September 23, 2009 14:29
Re: decimal to binary?
Message ID:
>>>>> "JWK" == John W Krahn <> writes:

  JWK> AFAIK floating point numbers don't have endianness (but I may be wrong.)
  JWK> (Besides, in the above example, endianness would be on the pack('d')
  JWK> side of the equation.)

floats are no different than integers in that you must select the
ordering of their bytes when stored in ram. this is done naturally at
the machine level but if you want to control endianess with floats in
perl you need to use reverse at some point.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About