Nope, that doesn't make differences go away, seeing as I was using SP 5.30.2 downloaded and installed less than a week ago. That's newer than 5.26, yet the output was different that the perl built gcc on Unbuntu on WSL on the same machine. The SP build does have -D__USE_MINGW_ANSI_STDIO
Strawberry Perl 5.30.2 on Windows:
>perl -e"CORE::say $^X" C:\progs\sp5302x64\perl\bin\perl.exe >perl -v | find "This is" This is perl 5, version 30, subversion 2 (v5.30.2) built for MSWin32-x +64-multi-thread >perl -V:nvsize nvsize='8'; >perl -V:ccflags ccflags=' -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D__USE_MINGW_ANSI_STD +IO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SY +S -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields'; >perl -e"CORE::say sprintf '%.20g', 0.1" 0.10000000000000000555
Self-built Perl 5.30.2 on Ubuntu 18.04 LTS on WSL on Windows:
$ uname -a Linux tribble 4.4.0-18362-Microsoft #476-Microsoft Fri Nov 01 16:53:00 + PST 2019 x86_64 x86_64 x86_64 GNU/Linux $ perl -v | grep 'This is' This is perl 5, version 30, subversion 2 (v5.30.2) built for x86_64-li +nux-thread-multi $ perl -V:nvsize nvsize='8'; $ perl -e'CORE::say sprintf "%.20g", 0.1' 0.10000000000000001
In reply to Re^8: Windows / Linux puzzler
by ikegami
in thread Windows / Linux puzzler
by lbrandewie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |