format of number field

Questions and answers for designing and implementing forms in Servoy

format of number field

Postby Hans Nieuwenhuis » Fri Dec 28, 2012 12:57 pm

Hi,

I have a database field of type number so it can contain any number with any decimals.

How can I make sure that what you see in the form field is exactly what is in the database ?

For instance if I use no format on the form field and I enter a value of 0,01234567 and I leave the field it shows 0,012
but in the database the value of .0123456699999999996 is stored.
I want to see the database value in the field.

Regards,
Hans Nieuwenhuis
Betagraphics
http://www.deltics.nl
http://www.betagraphics.nl

Servoy Version 7.3.1
Java version 1.7.0.x
Database Oracle 11g
User avatar
Hans Nieuwenhuis
 
Posts: 1026
Joined: Thu Apr 12, 2007 12:36 pm
Location: Hengelo, The Netherlands

Re: format of number field

Postby Andrei Costescu » Wed Jan 09, 2013 5:38 pm

A format (in locale preferences or on the field) similar to "#.####################" would do the trick.
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 1018
Joined: Tue Jun 26, 2007 3:14 pm


Return to Forms

Who is online

Users browsing this forum: No registered users and 7 guests

cron