Hey I'm using the following code to format my number for two decimal places < Pre> public string format (double number) {string tag = ""; Decimalable df = new passphrase ("R # #"); Floating = floating + df.format (number); Return temporary; }
When I print results, give me answeres with only a decimal place
In the # in the decimal format which is the character, print the number, if it is 0, then leave it. "
You have to use 0 where 0 also prints as 0.
Example
decimalf df = new passphrase ("R.00");
No comments:
Post a Comment