programming-examples/perl/Datatype/How Strings Are Converted to Numbers.pl

9 lines
187 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
String Converts to Number
"123 abc" 123
"hi" 0
"4e3" 4000
"-6**3xyz" -6
" .456!" 0.456
"x.1234" 0
"0xf" 0