Raised This Month: $ Target: $400
 0% 

float to num


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 05-19-2012 , 09:09   float to num
Reply With Quote #1

Hello,

how can I turn a float number to a normal number
example:
I wanna turn a float : 1.65853543
to a number : 1 or 2 doesnt matter how it rounds off.

I was thinking about using float_to_str and then str_to_num.

wil this give me the desired effect that i need?
striker07 is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode