Before passing to
string.Format
, you need to divide your 64-bit number by 100. And the format string is wrong, of course.
See:
http://msdn.microsoft.com/en-us/library/txafckwd.aspx[
^],
http://msdn.microsoft.com/en-us/library/dwhawy9k.aspx[
^],
http://msdn.microsoft.com/en-us/library/0c899ak8.aspx[
^].
You can use either standard or custom formatting, depending on your requirements which you did not share. One example is not enough. What's the valid range of numbers? Do you want zero-padding (than you would use "00.00")? Can it be more than 100 or 1000, etc.? In this case "##.##" will be not enough. Do you need fixed relative precision or absolute? Depending on that, I would simply use standard "F" (fixed-point) or "G" (general) format, but it all depends on detail of your requirements. Read the MSDN help articles referenced above, try it our accurately and choose what you really need. Don't forget to delete by 100. :-)
—SA