On Saturday 05 September 2009 12:57:08 Aleksandrs Livshics wrote: > 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 > P.S. It would be nice to have a general "Numbr" and also special ones for Integer only and Float only. The latter should accept scientific notation. The general Number in this case may be left as it is now: without "E". This is because these 3 boxes would be used by different people with different cultural background and for different purposes.
> --------------------------------------------------------------------------- >--- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day trial. Simplify your report design, integration and deployment - and > focus on what you do best, core application coding. Discover what's new > with Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
