You are here: Re: how to read Double value from Binary File By php « PHP Programming Language « IT news, forums, messages
Re: how to read Double value from Binary File By php

Posted by Ewoud Dronkert on 10/13/05 14:30

nooy66@gmail.com wrote:
> I need to read value type double form my binary file.
> When i use Hex Workshop software read my binary file.
> i have data 8 bytes :
>
> hex = 3131 3131 3131 3140
> string = 1111111@
> Float = 2.5784852e-009
> Double = 17.192157

print_r(unpack('d', '1111111@'));

does it for me. See http://php.net/unpack

--
E. Dronkert

 

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

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