Hi All,
I have a method that retrieves data from the database. The "Price" column (one of the column it returns) returns a DOUBLE data type. Which means the number could have three numbers AFTER the decimal point. I only want the UI to show a number of a max of TWO decimal points,
Is there some type of NumberFormat API i can use to truncate the third number or "round" up to two decimal points? I read through the NumberFormat Java API and it wasnt clear on how to do this.
Thx
I have a method that retrieves data from the database. The "Price" column (one of the column it returns) returns a DOUBLE data type. Which means the number could have three numbers AFTER the decimal point. I only want the UI to show a number of a max of TWO decimal points,
Is there some type of NumberFormat API i can use to truncate the third number or "round" up to two decimal points? I read through the NumberFormat Java API and it wasnt clear on how to do this.
Thx