Round(YourNumber*100)/100; To round up to nearest cent use Ceil(YourNumber*100)/100; or to round down to nearest cent use Floor(YourNumber*100)/100;
ang_60 wrote: > > Hi everybody, > > I'm trying the list because, most surely, I'm not the first to face > this need: I'd like to round a number to the second decimal e.g. > 41.3305 to 41.33 (in other word, ?i'd like a round function like the > one in MS Excel....). > > > AFL built in "round()" function can round a number just to the nearest > integer. > > What is the more convenient way to get the desired output in AFL? > > Thanks > > > > > __________ Information from ESET Smart Security, version of virus > signature database 5193 (20100613) __________ > > The message was checked by ESET Smart Security. > > http://www.eset.com __________ Information from ESET Smart Security, version of virus signature database 5193 (20100613) __________ The message was checked by ESET Smart Security. http://www.eset.com ------------------------------------ **** IMPORTANT PLEASE READ **** This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroker.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/amibroker/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/amibroker/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
