Supreme Council
Joined: 2006/11/19 18:16 Last Login
: Yesterday 9:46
From London, England
Group:
Webmasters Registered Users
|
@alfkil
Well %f prints a float, so I would assume %llf for a 64bit version.
In the past I have had problems printing 64bit numbers unless they are "aligned", so make sure the 64bit argument is the first or at least aligned, like so:
printf("number: %lld\n", num );
whereas:
printf("number 1: %ld number 2: %lld\n", longnum, longlongnum );
will print the 64bit number incorrectly.
Simon
Edited by Rigo on 2010/9/29 16:16:20
|