• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How to call round?

No, floor is not it. Floor is similar to the [ ] used in mathematics. Basically y=[x] means the smallest ingteger of x. In simpler terms, it truncates all decimals. Floor will take any real number greater than or equal to x and less than x+1 and make it x. So, for the previous equation, I will restrict the domain to 1 <= x < 2, so for all values of x, y is 1. Hope this helps.
 
Originally posted by: KraziKid
No, floor is not it. Floor is similar to the [ ] used in mathematics. Basically y=[x] means the smallest ingteger of x. In simpler terms, it truncates all decimals. Floor will take any real number greater than or equal to x and less than x+1 and make it x. So, for the previous equation, I will restrict the domain to 1 <= x <= 2, and the range range to 1 <= y < 2, so for all values of x, y is 1. Hope this helps.

yeah I realized that, but with a little bit of algebraically trickery floor can become round (by adding 0.5) ....I just wanted to know what member of the truncating family was implemented in C.
 
Back
Top