[Vienna-pm] noch seltameres...
Nagy Wilhelm
wilhelm.nagy at umweltbundesamt.at
Thu Mar 30 00:25:59 PST 2006
Hallo Leute,
erstmal besten dank fuer eure hilfe.
Wer gerne gruebelt...
$sValue = 0.0001;
$sValue *= 0.75;
$sValue = sprintf('%f',$sValue);
printf("%.5f\n",$sValue);
printf("%.5f\n",$sValue+1-1);
printf("%.5f\n",$sValue*1);
printf("%.5f\n",$sValue/1);
ergibt bei mir folgendes:
---------- DoProgram ----------
0.00007
0.00008
0.00007
0.00007
Output completed (0 sec consumed) - Normal Termination
Besonder spannend ist
printf("%.5f\n",$sValue+1-1);
This is perl, v5.8.6 built for MSWin32-x86-multi-thread
(with 3 registered patches, see perl -V for more detail)
More information about the Vienna-pm
mailing list