|
-
Mar 9th, 2010, 09:32 AM
#1
Thread Starter
Member
formatting a percentage in J#
I was after some help into how to format a percentage for J#.
The Code is -
void show_revenue_info()
{
System.out.println(" Milk round revenue (£) : " + this.milk_revenue());
System.out.println(" Farmer's revenue (£) : " + this.farmer_revenue());
System.out.println(" Farmer's revenue as a percentage of the milk round revenue :" + this.farmers_revenue_as_percentage_milk_revenue());
}
The item which is needing to be formatted is called "this.farmers_revenue_as_percentage_milk_revenue"
I am aware that i have to use new format which is ##.##
hope you can help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|