Relative Content

Tag Archive for ctypesoutputreturn-valuedivider

value divided by 100 does not return a decimal place although both the divident and the divisor are declared as data type float in c languages

I am about to solve the readability task from the CS50 course. This should become a programm that counts letters and words to use them in the Coleman-Liau -Index. Therefore i would like to divide the return value of the class which counts the letters by 100 . Too see if it works i output the value by printf. For example if i enter the value Whatever, the value 0.08 should be output. But Instead it outputs 0.