SBeier
November 27th, 2010, 09:03 AM
Hi, I am trying to make a fixed point number in c#.
I would like to be able to convert it to a decimal string, and to parse a decimal string into a fixed point number. I can't find a good way of doing it though. The bits before the comma is ofcourse not a problem, but how would you convert the part of the number after the comma?
btw, I have 19 bits before the comma, and 12 bits after the comma.
I would like to be able to convert it to a decimal string, and to parse a decimal string into a fixed point number. I can't find a good way of doing it though. The bits before the comma is ofcourse not a problem, but how would you convert the part of the number after the comma?
btw, I have 19 bits before the comma, and 12 bits after the comma.