DysoForums Forum Index DysoForums
 
GalleryGallery   Donate to DysotopiaDonate   Dysotopia.com homepageDyso.com
SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStats   RegisterRegister 
 Login to check your private messagesLogin to check your private messages   LoginLogin 

floating point problem, help please!

 
Post new topic   This topic is locked you cannot edit posts or make replies    DysoForums Forum Index -> Worldbuilders
View previous topic :: View next topic :: Hide signatures  
Author Message
Shadowleaf
Hero


Joined: 14 Jan 2003
Posts: 634

Level: 23
XP
EXP: 1 / 65 EXP: 1 / 65 EXP: 1 / 65
 1%
PostPosted: Fri Sep 12, 2003 2:26 am    Post subject: floating point problem, help please! Reply with quote

well, basically, i made a function that does floating point stuff... it works great when i put in a number that divides cleanly (the function divides 10 by the number you put in) but if it ends up with too many digits it gives me an error... i just want to know how to reduce the amount of digits in the floating point ...

Example: if it was 1.3244533 i would want to change it to 1.32


EDIT: *SIGH* nevermind, figured it out... why did i even bother asking
_________________
Glorin wrote:
Marine you are such a great guy, i hope you don't get hit by a truck one day!!
Back to top
View users profile Send private message Send email AIM Address MSN Messenger
Display posts from previous:   
Post new topic   This topic is locked you cannot edit posts or make replies    DysoForums Forum Index -> Worldbuilders All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.2 © 2001, 2002 phpBB Group