[Qt-interest] Why this double is not valid by QDoubleValidator
Bob Hood
bhood2 at comcast.net
Thu Aug 27 17:32:34 CEST 2009
What was entered was not valid scientific notation. The "E" part is the
substitution for the "x 10" part of the scientific notation. You need
the exponent value following the "E". What was entered was equivalent
to "-0.0000888889 x 10", which lacks an exponent -- not valid scientific
notation. There must be an exponential value following the "E".
Google is your friend:
http://www.google.com/search?q=scientific+notation&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
Sujan Dasmahapatra wrote:
> It's scientific notation right . By default Validator supports
> scientific notation.
>
> On Thu, Aug 27, 2009 at 4:45 PM, Srdjan Todorovic
> <todorovic.s at googlemail.com <mailto:todorovic.s at googlemail.com>> wrote:
>
> Hi,
>
> On 27/08/2009, Sujan Dasmahapatra <sujan.dasmahapatra at gmail.com
> <mailto:sujan.dasmahapatra at gmail.com>> wrote:
> > Dear Friends
> > Why QDoubleValidator is not accepting the value below as a
> double with
> > default settings.
> >
> > "-0.0000888889E"
>
> is E a valid double?
> Did you miss out the exponent?
>
> Srdjan
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com <mailto:Qt-interest at trolltech.com>
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
>
>
> --
> Thanks & Regards
> S. Dasmahapatra
> B.E. (Aeronautics-Aerodynamics)
> Bangalore, India
> Ph:91-9900839788
> Office:91-80-66470248
> mail id : sujan.dasmahapatra at gmail.com
> <mailto:sujan.dasmahapatra at gmail.com>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
--
Render me gone, |||
Bob ^(===)^
---------------------------------oOO--(_)--OOo---------------------------------
"Magic" and "Miracles" are registered trademarks of Ignorance, Inc.
All Rights Reserved.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090827/1f16e5f7/attachment.html
More information about the Qt-interest-old
mailing list