numbers

This is a discussion on numbers within the C++ Programming forums, part of the General Programming Boards category; Im writing a program that adds up the squares of every even number between 0 and 2500. All i want ...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    4

    numbers

    Im writing a program that adds up the squares of every even number between 0 and 2500. All i want to know is how do i make the numbers that are big not show to show up in scientific form.

  2. #2
    zen
    zen is offline
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    Try using an unsigned 32 bit integer to store the accumulated value.
    zen

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Logical errors with seach function
    By Taka in forum C Programming
    Replies: 4
    Last Post: 09-18-2006, 06:20 AM
  2. Adding Line numbers in Word
    By Mister C in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 06-24-2004, 09:45 PM
  3. Replies: 4
    Last Post: 03-03-2003, 03:52 PM
  4. the definition of a mathematical "average" or "mean"
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 12-03-2002, 11:15 AM
  5. A (complex) question on numbers
    By Unregistered in forum C++ Programming
    Replies: 8
    Last Post: 02-03-2002, 06:38 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21