Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
General
:
Perl Programming
:
truncate without rounding
Previous Thread
Next Thread
Print Thread
View Threaded
Aug 4, 1999, 9:48 PM
Ericp
Novice
(6 posts)
Aug 4, 1999, 9:48 PM
Post #1 of 2
Views: 2373
Shortcut
truncate without rounding
How would I truncate a number to the thenths without it rounding up? For instance the number 9.18 ===> 9.1
Aug 6, 1999, 2:53 AM
Ericp
Novice
(6 posts)
Aug 6, 1999, 2:53 AM
Post #2 of 2
Views: 2295
Shortcut
Re: truncate without rounding
In reply to
I'll answer my own question:
int( 10*$number)/10;
Previous Thread
Next Thread
Print Thread
View Threaded