Page 1 of 1

Help with conversion floating point to 4 byte for apple1

Posted: Sat Jun 05, 2021 6:24 pm
by Powersoft
Hello,

I wont to implement the floatingpoint routines from Steve Wozniak.
Enaugh info is availble on the web but
I Have trouble to convert a float to the 4 byte format, and back.

In the source I found as an example 1.4426950409 => $80,$5C,$55,$1E

Can someone explane me the conversion.

Thank for any help.

Cheers,

Jan

Re: Help with conversion floating point to 4 byte for apple1

Posted: Sat Jun 05, 2021 7:02 pm
by barrym95838
It's not super-complicated, but I stalled on my attempts due to a secret combination of lack of spare time, lack of enthusiasm, and lack of talent. I speculate that a small improvement in any of those three qualities could have produced working code, but that's just the way the cookie crumbled. Maybe later ...

viewtopic.php?f=2&t=5652

viewtopic.php?f=1&t=3633

viewtopic.php?f=2&t=5724

viewtopic.php?f=2&t=5879&p=72341&hilit=wozfloat#p72341

Re: Help with conversion floating point to 4 byte for apple1

Posted: Mon Jun 28, 2021 12:35 am
by dclxvi
Buried in the rabbit hole of all those threads is this post which covers converting the bytes the floating point number they represent, and goes through some examples.

viewtopic.php?p=3116#p3116