|
|
back to boardIt's enough the pascal's extended type to solve this problem. But the C++'s double type has only 15 digits :'( Edited by author 16.11.2007 01:58 Use long double! I think it's enough int64 I agree with topic), but i think it depends on compiler VS help says that long double equals to double and have 15 digits, but actually can store up to 18 strange.. Int64 is enougth Pascal - это наше всё... If you can't normaly solve the problem, just agree with it. C++ - the best! Pascal - already died. gcc has 10 bytes for long double while VC long double is 8 bytes long. Anyway, __int64 can hold up to 18 digits. And keep it unsigned :) |
|
|