Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
Running on version When


is executed, it returns 4 as normal. But, when




they return 3.

It's only 16 as far as I can tell. I would provide screenshots, but I don't have a link cable yet. I ordered one now, so as soon as I get it, I will update. Or someone else can. Either way.
This is not a bug, rather, it is a rounding error.
logBASE(16,2 actually returns 3.999999999999 so int( and iPart( drop it down to 3.

By using round( to fix this error, we can find the true value like this:
And get the 4 we wanted.

You can read about the round command Here.
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are GMT - 5 Hours
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum