You are here: Re: Binary manipulation of a floating point number « PHP Programming Language « IT news, forums, messages
Re: Binary manipulation of a floating point number

Posted by Chung Leong on 06/10/06 03:52

vendredi5h@gmail.com wrote:
> Hello all,
>
> I'd like to split a 64-bits word (hold as a floating point number) into
> two 32-bits words (hold as integers). Bitwise operators are working on
> Integers, not on floating point.
>
> Anyone can tell me how I can do this?
>
> Yannick

To get the upper half, divide the float by 4294967296 and floor it. To
get the lower half, get the float's modulus 4294967296 and floor it.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация