hi i try to create little Program and search to get a dezimal number with a "," back cant find a way can somone help:
her some code:
Arbeitszeit = ((Stunden * 60) + Minuten) / 60
if Stunden are 6, Minuten are 15 i get back only 6 but it should be 6,25
can someone help please
Math/Calculation Problem
Re: Math/Calculation Problem
Use a proper type for decimal number...
Code: Select all
Arbeitszeit.d = ((Stunden * 60) + Minuten) / 60