hi my assignment is to write a binary calculator that works with floating point for simple math (+,-,x,/). i have no idea how to do this. the binary numbers need to be from the user. Any help would be appreciated.
Thanks in advance!
hi my assignment is to write a binary calculator that works with floating point for simple math (+,-,x,/). i have no idea how to do this. the binary numbers need to be from the user. Any help would be appreciated.
Thanks in advance!
https://en.wikipedia.org/wiki/Binary_numeral_system
We don't give handouts here, please try again.
You could start out by implementing this function:
Code:#include <stdio.h> /* readbin converts a number encoded in binary to a C 'double' value and stores * it in *dp. Returns 1 on success, 0 on failure, and EOF if an error or * end-of-file occurred on iop. */ int readbin(double *dp, FILE *iop);