Zoo tutorials: [ SQL | Linux | XML ]
ProgZoo: [ Java | C# | VB | C++ | Perl ]
Log in

A Gentle Introduction to
Perl Programming

Converting between number types

 

Data types

Converting between number types

When converting from a floating point number to an integer there is likely to be a loss of precision - for example 3.1 will become 3.

When converting from an integer to a floating point there is no such danger.