how to force 2 digits for fraction value?

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

how to force 2 digits for fraction value?

#1

Postby t4nu » Tue Jun 07, 2016 1:54 am

Hi,
How can I force the display to always show 2 digit for the fraction part, no matter there is a fraction or not?
So, the 12 will showed 12.00, 12.5 will showed 12.50, etc.
Thanks in advance for help.
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Tue Jun 07, 2016 7:14 am

In field properties, change the field type to Currency and set Decimal Digits to 2.
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#3

Postby t4nu » Wed Jun 08, 2016 7:41 am

Thanks a lot, Jon.
Problem solved :D
Jon wrote:In field properties, change the field type to Currency and set Decimal Digits to 2.
0 x


Who is online

Users browsing this forum: No registered users and 4 guests