|
From: John Yeung <gallium.arsenide@xxxxxxxxx><snip>
To: IBMi Open Source Roundtable <opensource@xxxxxxxxxxxx>
Date: 07/14/2016 02:03 PM
Subject: Re: [IBMiOSS] Field Length using node.js
Sent by: "OpenSource" <opensource-bounces@xxxxxxxxxxxx>
I'm afraid I am not sure which "CLI" you mean... you did refer to a
CLI API, but I can't stop seeing "command line interface" which
doesn't seem to fit the context.
The terms "precision" and "scale" as used above are definitely the
norm for SQL. I understand the confusion, and I used to get confused
by them myself.
What made me finally grok the terms, used this way, is thinking of
scientific notation and IEEE floating point. When scientists say a
measurement is "precise to 6 digits", they mean it has 6 significant
digits. It doesn't matter whether they are talking on an astronomical
scale or a subatomic one, it's still significant digits. (And see
there, I already used the word "scale".)
So if precision is related to significant digits, then what's left for
scale to be related to is exponent. Astronomers typically deal with
big exponents, particle physicists with small ones (well, negative
ones). It's not that particle physicists need fewer digits (in other
words, it's not that they need less precision). They are just working
at a different scale. The exponent in scientific notation or floating
point essentially tells you where your (fixed number of) significant
digits are situated. And that's what scale does in a database numeric
field.
John Y.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.