site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Greetings, I am parsing some numbers with 15 decimal places, with: fscanf(inf,"%lf,%lf", &xCor, &yCor); with the input numbers: 569850.000000500003807,4900023.634829379618168 become rounded when output with: fprintf (outf, "%lf,%lf\n", xCor, yCor); to: 569850.000001,4900023.634829 Thanks, Jeshua Lacock ___________________________ Programmer/Owner Phone: 877.240.1364 http://OpenOSX.com Fax: 415.462.6211 -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I thought that I would want to use the "long double" ctype, but it apparently only supports 6 decimals? Or is fprintf doing the rounding? Can anyone recommend a "C type" for 15 decimals on Darwin? I certainly would appreciate it! This email sent to site_archiver@lists.apple.com
participants (1)
-
Jeshua Lacock