Qbasicnews.com
April 03, 2020, 08:31:28 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: 1 2 [3]
  Print  
Author Topic: ROUNDING NUMBERS: Which method do you use? SEE MANY METHODS  (Read 8722 times)
Moneo
Na_th_an
*****
Posts: 1971


« Reply #30 on: September 03, 2003, 07:30:48 PM »

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.
*****
Logged
Plasma
Na_th_an
*****
Posts: 1770


WWW
« Reply #31 on: September 03, 2003, 11:13:37 PM »

All right, all right, sorry about the badass stuff. Smiley

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.
Logged
LinkMaster Sab
Member
*
Posts: 82



« Reply #32 on: September 03, 2003, 11:57:08 PM »

Alright Forrest Wink.

It does just about any math function I know, so that'd be through Geometry so far... its doing pretty good Cheesy. I'm in 10th grade, just so you don't think I've only done Geometry throughout my school time  Cheesy.
Logged

 LinkMaster Sab
oracle
*/-\*
*****
Posts: 3652



WWW
« Reply #33 on: September 04, 2003, 06:15:09 PM »

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...
Logged

LinkMaster Sab
Member
*
Posts: 82



« Reply #34 on: September 04, 2003, 07:08:54 PM »

Really... I didn't know about those pitfalls until this post. Thanks.
Logged

 LinkMaster Sab
oracle
*/-\*
*****
Posts: 3652



WWW
« Reply #35 on: September 04, 2003, 07:17:41 PM »

That sums it up nicely, don't you think? :lol:
Logged

Pages: 1 2 [3]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!