in reply to Re: [XS] C printf() and Microsoft compilers.
in thread [XS] C printf() and Microsoft compilers.
whereas cl provides:C:\>perl -MPOSIX -e "printf '%.0f', POSIX::DBL_MAX;" 1797693134862315708145274237317043567980705675258449965989174768031572 +607800285387605895586327668781715404589535143824642343213268894641827 +684675467035375169860499105765512820762454900903893289440758685084551 +339423045832369032229481658085593321233482747978262041447231687381771 +80919299881250404026184124858368
Both values assign to the same double, but the former is an exact representation of that double, whereas the latter is an approximation.C:\Windows\System32>perl -MPOSIX -e "printf '%.0f', POSIX::DBL_MAX;" 1797693134862315700000000000000000000000000000000000000000000000000000 +000000000000000000000000000000000000000000000000000000000000000000000 +000000000000000000000000000000000000000000000000000000000000000000000 +000000000000000000000000000000000000000000000000000000000000000000000 +00000000000000000000000000000000
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: [XS] C printf() and Microsoft compilers.
by NERDVANA (Priest) on Jan 08, 2020 at 15:00 UTC |