stevepre
Member level 4

Is there any tools or anybody has a script or program that can quickly convert a fractional number to hardware representation?
For example: (simple one that people can usually calculate it by inspection)
0.5 = 0.1
0.25 = 0.01
-0.5 = 1.1
-0.25 = 1.11
-0.0001234 = ?????
And it gets more complicated if there is interger number combined, like 123.456
Is there a program or a script which can do that?
Thanks
For example: (simple one that people can usually calculate it by inspection)
0.5 = 0.1
0.25 = 0.01
-0.5 = 1.1
-0.25 = 1.11
-0.0001234 = ?????
And it gets more complicated if there is interger number combined, like 123.456
Is there a program or a script which can do that?
Thanks