Using %a in floating point format to detect presence of really small numerical values
#20643
Closed
markcmiller86
started this conversation in
Share cool stuff
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
VisIt uses printf-style formatting specification in things like queries, legend annotations, label plot, etc. when numerical values are printed. Sometimes, you may be dealing with a dataset that consists entirely of extremely small (near zero) values.
%gmay result in0.000being displayed for aMinMaxquery when the values are actually not identically zero.You can debug this kind of thing by setting the format to
%a. That tells the underlyingsprintf-functions VisIt uses to print numerical values to display the value by dumping the actual memory holding the value. If the value is identically zero, you will see0+0p0. If it is really small, but not identically zero, you will see a potentially long hexadecimal string000ac01037ff+23ffp.Beta Was this translation helpful? Give feedback.
All reactions