Thread: Round A Negative Number

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    May 2021
    Posts
    17

    Round A Negative Number

    This is quite an obscure bit of trivia.

    -4.001 at 2 decimal place = -3.99
    -1.001 at 2 decimal place = -0.99
    -0.001 at 2 decimal place = ?

    The answer is 0.00, since the difference between 399 and 400 is 1, same for 99 and 100. The difference between 001 is 000 is also 1.

    It is difficult for someone to digest the fact that a number is reduced to nothing.
    Last edited by ZTik; 05-10-2021 at 07:51 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. round a number to superior integer
    By nevrax in forum C Programming
    Replies: 5
    Last Post: 03-30-2007, 02:57 AM
  2. How can i convert negative number to positive number ?
    By winsonlee in forum C Programming
    Replies: 2
    Last Post: 05-05-2004, 08:02 AM
  3. random number between negative and positive number
    By anomaly in forum C++ Programming
    Replies: 6
    Last Post: 12-06-2003, 08:40 AM
  4. how to read in a negative number using cin
    By revelation437 in forum C++ Programming
    Replies: 4
    Last Post: 04-02-2003, 02:32 PM

Tags for this Thread