Literals/Floating point: Difference between revisions
Content deleted Content added
Puppydrum64 (talk | contribs) |
Puppydrum64 (talk | contribs) |
||
Line 45:
You'll have to do it the hard way unfortunately. I used an IEEE-754 floating point calculator to figure this out.
<lang 6502asm>byte $DB,$0F,$49,$40 ;3.141592654</lang>
=={{header|68000 Assembly}}==
If you don't have a floating-point unit, floats aren't of very much use. The most portable way to declare float literals is also the most tedious: by storing their hexadecimal representation as data.
<lang 68000devpac>
Pi:
DC.L $40490FDB</lang>
=={{header|Ada}}==
|