Weekly Qbasic and Qb64 Lesson Topics
October 19, 2018, 09:22:09 am
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 171 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

Social Buttons


Pages: [1]
  Print  
 
Jump to:  

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

Buy traffic for your forum/website
traffic-masters
Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy