View previous topic :: View next topic |
Author |
Message |
raswaim
Joined: 06 Jan 2005 Posts: 69 Location: Houston, TX
|
Posted: Sat Jul 02, 2005 1:07 pm Post subject: Date/Time Format with improbably large numbers |
|
|
Not a big issue, but if you happen to generate large values for the X-axis while you have date/time formatting turned on, the program will terminate. It looks like the formatting routine has an unhandled condition, probably as the result of an integer conversion going negative. The issue appears if an x value is greater than 2^31. I tripped over it while attempting to convert a timescale to milliseconds (multiplying using operate on X) before switching the format back to default - not a sequence I can recommend. Not something you'd generally have a problem with unless you regularly need to check your calendar 6 million years from now, but since the results are so startling, I thought I'd report it... _________________ - RAS |
|
Back to top |
|
|
DPlotAdmin Site Admin
Joined: 24 Jun 2003 Posts: 2310 Location: Vicksburg, Mississippi
|
Posted: Sat Jul 02, 2005 1:44 pm Post subject: |
|
|
Richard,
Thanks. That problem actually did occur to me briefly as I was working on the last update, but didn't stay in my head long enough to fix it.
Hmm... an integer operation, that means you need to guard against integer overflow. Nah, who's going to do that?
And now we know
I'll definitely have this fixed next time, most likely by making it all floating point. So if you want to plot the time of day when the sun is expected to fizzle, you'll be able to. _________________ Visualize Your Data
support@dplot.com |
|
Back to top |
|
|
raswaim
Joined: 06 Jan 2005 Posts: 69 Location: Houston, TX
|
Posted: Sat Jul 02, 2005 3:32 pm Post subject: |
|
|
Do whatever is easiest, I personally don't really care if it actually returns a sensible date since I think the Morlocks will introduce a new standard to replace the Gregorian calendar. I just didn't want it to crash.... _________________ - RAS |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|