java - Fixed Point Numbers -
I got stuck in a project in my project for Java class.
We have to create a code that will convert a number into a fixed point number. I got that part right, but where I am stuck, it is in the part of our work of mathematics. We have to split with adding, subtracting, multiple w / (scalar (float) method, and scalar (float) method.
Even if I have a code I can say that the second number is the right direction for getting the output and adding two numbers. I
for each action in your You can look for an example to see. fixed number Class This method will work on the existing number of object numbers (
this ) and passed parameters. Adding a public fixed dum to [02] connects two numbers and returns the result} Public FixedDumer Multiplication (Fixed number to multiply) {// multiply two numbers and gives results} // ... etc. ..
Comments
Post a Comment