[1483] in Athena Bugs

home help back first fref pref prev next nref lref last post

(RT and VAX) Version 6.0R: awk

daemon@ATHENA.MIT.EDU (Bill Sommerfeld)
Tue Dec 6 20:00:09 1988

Date: Tue, 6 Dec 88 19:59:16 EST
From: Bill Sommerfeld <wesommer@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
System type, version:	(RT and VAX) Version 6.0R
System name:		any I've tried
What's wrong:

awk 'BEGIN { printf "%d\n", 16777217; }' /dev/null 
prints "16777216" on the RT and "16777218" on the VAX.

What should have happened:

It should print 16777217.

[There may be no easy fix; the number may be stored internally as a
float with ~24 bits of mantissa.]

						- Bill

home help back first fref pref prev next nref lref last post