Weekly Qbasic and Qb64 Lesson Topics
April 16, 2024, 06:47:21 pm
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Want to see a specific Tutorial? ASK!
 
  Home Help Search Arcade Links Staff List Login Register  

clng function

Pages: [1]
  Print  
Author Topic: clng function  (Read 308 times)
parsec
Newbie
*
Posts: 2


« on: June 18, 2018, 08:05:58 am »

Hi,
I have a problem rounding numbers: why

PRINT CLNG(90.7755 * 1000) / 1000 = 90.776

and instead

PRINT CLNG(90.7754 * 1000) / 1000 = 90.77500000000001?

I'm becoming crazy!
Thanks a lot!!

fabio

Report Spam   Logged

Share on Facebook Share on Twitter


Pages: [1]
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum


Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy