Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: How to store all 1 s in perl

by tybalt89 (Monsignor)
on Apr 08, 2021 at 02:07 UTC ( [id://11130985]=note: print w/replies, xml ) Need Help??


in reply to How to store all 1 s in perl

#!/usr/bin/perl use strict; # https://perlmonks.org/?node_id=11130981 use warnings; use bigrat; my $value = 1 x 131/ 1; my $value1 = $value; print "$value\n";

Outputs:

1111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111

hehehehehehe !!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11130985]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-04-26 08:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found