in reply to Re^3: Largest integer in 64-bit perl
in thread Largest integer in 64-bit perl
Perl does this by switching to double floats with E0 were the mantissa has 53 bits (opposed to integers with 32 or 64 bits, depending on the built).
Now from what I read on Wikipedia is Rust strictly typed.
Hence I really don't understand what your code is supposed to show.
Is there any implicit typecasting in your code?°
According to this tutorial: https://oylenshpeegul.gitlab.io/from-perl-to-rust/numbers.html this can't be, because coercion has to be made explicitly.
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Largest integer in 64-bit perl
by syphilis (Archbishop) on May 30, 2025 at 00:41 UTC | |
by LanX (Saint) on May 30, 2025 at 01:21 UTC | |
by syphilis (Archbishop) on May 30, 2025 at 11:16 UTC | |
by LanX (Saint) on May 30, 2025 at 13:49 UTC | |
by syphilis (Archbishop) on Jun 02, 2025 at 09:35 UTC | |
| |
by NERDVANA (Priest) on May 30, 2025 at 18:07 UTC | |
by hippo (Archbishop) on May 30, 2025 at 18:58 UTC | |
by LanX (Saint) on May 30, 2025 at 19:58 UTC | |
Re^5: Largest integer in 64-bit perl
by karlgoethebier (Abbot) on May 30, 2025 at 08:55 UTC |