SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : TA-Quotes Plus

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: Bob Jagow who wrote (7345)10/23/1998 5:54:00 PM
From: TechTrader42  Read Replies (1) of 11149
 
You can round any variable by adding .5 to it and declaring it as an integer. So we have all three functions now: floor, ceiling and round. For floor, you make it an integer; for ceiling, you add 1 and make it an integer; and for rounding, you add .5 and make it an integer.

For example, if 9.3 is the value, you add .5, and make it an integer. It's rounded to 9. If it's 9.5 or 9.8, you add .5 and it's 10 or 10.3 before making it an integer. Make it an integer and it's rounded to 10 in both cases.

What a versatile program, to be sure.

Brooke
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext