
So that you'll have, say, 16-17 significant figures, or a number "good" to Have pointed out you need to create the number as a double to begin with, You'll then have a very precise, "nearly correct" number. That is, you'reĬonverting a single precision number (where the last 2 decimap points can be anything, see above) But, why doesn't x2=Double(443496.984) produce the correct result?īecause 443496.984 is, again, a single precision literal constant. Precision value to 443496.984 and print it out, a result of 443496.9XX where the XX can be

So, if the 7 significant figure assumption is a good one (it may not be), then if you set a single Precision probably good to 1.100000e+37ġ.01e+37 = 3 significant figures. So, **assuming** that 7 significantįigures is a definite "cutoff" for precision, then:ġ.1e+37 = 2 significant figures. Numbers are stored with a mantissa (describes the actual number you want)Īnd an exponent (describes the, well, the exponent.). Most floating point numbers can't be represented exactly in binary (I say most because But, first, here is what Paul had to say to this person's question:ĭon't confuse the magnitude of the number with its precision. Then, I want to add a couple of other articles I think you Or seven decimal places of significance").ĪNSWER: To address this specific question, I present the excellent answer Paul van Delst offered Number this large (floats can handle "☑0^38, with approximately six Number 443496.969 from basic assignments using Float() or Double(),ĭespite the fact that even floats should easily be able to handle a The problem is that the number 443496.984 is being turned into the I ran into a number transformation error yesterday that is stillĬonfusing me this morning. Here is the most recent incarnation of the question: What it boils down to is that the person posting the article is just about to get his or her first

See how perverse this is and blah, blah, blah. And I'm sure every thinking person with half a brain will Like this: " I've found a bug of such magnitude that it confirms my feeling that IDL is a piece of blah, blah. On the IDL newsgroup under the general category of The Sky is Falling! It usually starts out
#IDL FINDGEN HOW TO#
If this keyword is set, the function returns the Unicode value for the symbol.QUESTION: I'm not sure exactly how to express this question. UNICODE in optional type=boolean default=0 Of the symbol can be obtained at any time and in any device, by setting this keyword. The current device is PostScript and !P.Font is 0 or 1. Normally, the PostScript version of the symbol is returned automatically if If this keyword is set, the names of symbols and the symbols themselves are written

An alternative way of capitalizing the letter is to make the first letterĮXAMPLE in optional type=boolean default=0 If this keyword is set, the captial Greek letter is returned rather than the lowercase Keywords CAPITAL in optional type=boolean default=0 The equivalent of setting the Capital keyword. Alpha nu leq beta xi geq gamma omicron neg delta pi deg epsilon rho equiv zeta sigma prime eta tau angstrom theta upsilon sun iota phi varphi kappa chi infinity lambda psi copyright mu omega Note that if the first letter of the name is capitalized, this is
