Using "gawk.exe" from file "gawk-3.1.0-2-bin.zip"
and mawk under Windows 95 and ME
I issued the following commands and
got the results below:
D:\Gawk\bin>gawk "BEGIN{print 0.5}"
0
D:\Gawk\bin>mawk "BEGIN{print 0.5}"
0.5
The same applies to "awk.exe", "igawk.exe"
and "pgawk.exe".
By the way, 2 additional proposals:
In order to get "gawk.exe" to run
I also had to install "libintl.dll" & "libiconv.dll".
I did not see this being mentioned in
the installation instructions, but got
corresponding error messages from gawk
(very helpful, good job).
A statically linked version may be nice as well.
Also a lightweight version without the
internationalization and network features
(<200kByte) as in earlier would be nice to have.
Kind regards
and thanks for your efforts
G. Seelmann
.
Logged In: NO
It depends on the settings in the Windows Control Panel:
when the decimal separator for numbers is set to "." (like
in English speaking countries) , "print 0.5" prints "0.5".
But when the decimal separator is set to "," (like in German
speaking countries), "print 0.5" prints "0". A workaround is
to write "print 5/10", which prints "0,5".
GK
Logged In: YES
user_id=217802
Originator: NO
This bug has been fixed. A new release is available through
http://gnuwin32.sourceforge.net/