[Gambas-user] Value box for numeric values

Aleksandrs Livshics aleks.l at ...1865...
Sat Sep 5 11:57:08 CEST 2009


On Saturday 05 September 2009 11:41:42 Doriano Blengino wrote:
> Benoît Minisini ha scritto:
> >> Hi gambas users.
> >> It seems to me that it is impossible to enter a number in
> >> scientific notation in a value box. It does not accept
> >> "E" or "D" letters which are used to separate exponent.
> >> So value as 1.0E-1 is illegal. If it is so, it must be treated as a bug
> >> ! Or am I doing something wrongly ?
> >> Alex
> >
> > I don't know if "Number" should accept scientic notation, or if I should
> > better create a new ValueBox Type (for example "Scientific").
> >
> > And where did you see that "D" is an exponent separator?
>
> I too vaguely remember the "D" letter, probably it means "double
> precision" in C or Fortran.

 Exactly . This was an old fortran convention that the number should be
treated as "double precision". In modern Fortran there are other means to tell 
that. 
Alex




More information about the User mailing list