Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Round to 2 decimals

783898Oct 22 2010 — edited Oct 26 2010
I want to round to 2 decimal places the number that i put in th text field.

For Eg:

IfI put 17.876 I want it as 17.87.

I am trying to call js in change even of this text field but it is giving me 17.00.I am using toFixed(2) function in this.

GIven below is the copy of my js function.

$x('P3_CHARGES').value = ($x('P3_CHARGES').value).toFixed(2);
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 23 2010
Added on Oct 22 2010
5 comments
560 views