Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / The Function To Round a Number *Dun Dun DUN!*

Author
Message
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 29th Oct 2006 03:32
Example:






Syntax:





Function:




lower logic
18
Years of Service
User Offline
Joined: 15th Jun 2006
Location:
Posted: 29th Oct 2006 06:21
It works great, but here's a simpler (and more efficient) function:


This snippet shows that both round functions produce the same output:
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 29th Oct 2006 17:21
Cool I tested and it seems your method is higher in FPS...

Mine was about 339, yours was about 341

Thanks


Login to post a reply

Server time is: 2024-11-22 23:24:22
Your offset time is: 2024-11-22 23:24:22