Very long number.

Hi, I have this code
1
2
3
4
  unsigned long long number;
  cin >> number;

  cout << 192 + (number*250) << endl;

where number is (1  < number < 1018).

When I enter 1018 the result is not correct.

How can I solve this problem?
well, 1018*250 goes out of range of unsigned long long.
use double instead
Topic archived. No new replies allowed.