The test value is 123.123 in character format.
Write a function called strToFloat that converts a character string into a floating point value. Have the function accept an optional leading minus sign. So, the call
should return the value -867.6921.
All is going well except something with my last subroutine with switch case statement multiplicationa is off. Got me scratching my head. Here's the output.
Here is the switch case structure. I'm not sure if its my initializing of floats I'm doing wrong or what.
The number of decimal places are: 3
Decimal character string extracted to buffer: 123123
Converted completely back to decimal: 123.123001
Any insight greatly appreciated.
void decPlaceMult(double number)
printf("Converted completely back to decimal: %f",answer);