Question: coding in C : Task 2 : String to number In this task, you will ask the user for a string x that represents a

coding in C : Task 2: String to number
In this task, you will ask the user for a string x that represents a real number and the base b in which this number is given. Your task is to convert this string in to the floating number in base 10.
Note. Number in base 10 are the numbers we use in our daily basis were all the number's digits are less than 10.
Example:
x=75.32,b=8, Output: 61.40625
Explanation:
-7*81=56
-5*80=5
-3*8-1=0.375
-2*8-2=0.03125
-3*8-1=0.375
-2*8-2=0.03125
Output: 56+5+0.375+0.03125=61.40625
x=-75.32,b=8, Output: -61.40625
 coding in C : Task 2: String to number In this

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!