Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ROUNDING NUMBERS: Which method do you use? SEE MANY METHODS
#31
PLASMA:
Ok, let's not make this into a personal issue.

To review the 3 points:

1) I got started off on the wrong foot on this one because I didn't realize it was a joke. Sorry.

2) The "common" method turns out not so common when you use CINT and INT to round, specially for negative numbers. A programmer who's thinking in terms of the "common" method and who does not fully test using CINT and INT, will come to a rude awakening when the user complains that the rounding is not "common".

3) I misunderstood you on this one.

In summary, joke or no joke, in all honesty I don't feel that your participation in the thread added any insight, contribution, or better undersanding of the subject for those of us involved. That's why I labelled your comments as "off-the-wall". I was reacting defensively. If I offended you in any way, I apologize. If you want to consider me as "Captain Badass", that's your choice.
*****
Reply
#32
All right, all right, sorry about the badass stuff. Smile

My first post was just supposed to be funny, but I see now that it probably offended you...

And as for the misunderstandings...all I can say is I hate non-threaded boards.

Although, I do think I presented a few worthwhile points: QB rounds the way it does because it uses the FPU, which rounds the way it does because it's faster and cheaper. It's not really a "flaw with QB". And secondly, while QB is very generous in the math functions it provides, it still does not have many functions built-in. So I don't think that a lack of a "common" rounding function is that big a deal, especially when you can write one with one line of code.


....and that's all I have to say about that.
Reply
#33
Alright Forrest Wink.

It does just about any math function I know, so that'd be through Geometry so far... its doing pretty good Big Grin. I'm in 10th grade, just so you don't think I've only done Geometry throughout my school time Big Grin.
LinkMaster Sab
Reply
#34
Ahhh well... if you want to round properly, just make a function for it. At least now some people know the pitfalls of using inbuilt rounding functions, and since they cannot change there is not too much point worrying about it...
Reply
#35
Really... I didn't know about those pitfalls until this post. Thanks.
LinkMaster Sab
Reply
#36
That sums it up nicely, don't you think? :lol:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)