Is it possible to take a decimal number as input from the user without using float/double data type?
And this number has to be used further for calculation.
I'm making a function to calculate square root of a number without using cmath library, I'm doing this for a DSP that doesn't have FPU so I can't use float/double.
If I will be using string to take input of decimal number from the user then how can I convert it into a number, and if it is converted into a number then what should be the return type of the square root function (the root will be a fractional number)?
If possible please suggest some alternative way instead of stings.