Literals/Floating point: Difference between revisions
m
→{{header|Z80 Assembly}}
Puppydrum64 (talk | contribs) |
Puppydrum64 (talk | contribs) |
||
Line 1,529:
{{trans|6502 Assembly}}
You'll have to do it the hard way unfortunately. I used an IEEE-754 floating point calculator to figure this out.
The Z80 doesn't natively have any commands for floats, so you'll have to do it yourself.
<lang z80>byte &DB,&0F,&49,&40 ;0x40490FDB or 3.141592654 (single-precision)</lang>
|