Q: string convert to number and any high precision soluation?

K

key9

Hi all

Take these for example;

$var="3.14"
$var2="100"

$pi="3.1415926535897932384626"
$large = "30003213000000000000"


Q1
how to convent these to number explicit?
I means I don't care precision now.

Q2
Is there exist some high precision soluation module ?
support operation like * + sin() etc.



appreciate
key9
 
J

John W. Krahn

key9 said:
Take these for example;

$var="3.14"
$var2="100"

$pi="3.1415926535897932384626"
$large = "30003213000000000000"


Q1
how to convent these to number explicit?
I means I don't care precision now.

They already are numbers.

perldoc perlnumber

Q2
Is there exist some high precision soluation module ?
support operation like * + sin() etc.

perldoc bignum



John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top