D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Maths! not my strong point



On 23/09/04 20:23:32, Neil Williams wrote:
mike wrote:
> OK,
>
> Do I have a bit code that has taken me ages to get right.
> In perl...
>
> What I need to do is take 51.1234 and turn in back into a binary string.
>
> (This is actually taking 4 hex values that are a float and turning them
> into a value, so the hex values is actually 844C7E5C which = 51.1234,
> need to go the other way, 51.1234 -> 844C7E5C)


Why re-invent the wheel? Use CPAN.

http://search.cpan.org/~smueller/Bundle-Math-Base-1.00/Base.pm

Why do it yourself when the code is tested and proven and a simple:
use Bundle::Math
away.


Thanks but I am not sure how this helps me, got any more details?


--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.



Lynx friendly