Page 1 of 1

Math/Calculation Problem

Posted: Sun Sep 22, 2024 3:37 pm
by rvq4u
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

Re: Math/Calculation Problem

Posted: Sun Sep 22, 2024 4:26 pm
by Paul
Use a proper type for decimal number...

Code: Select all

Arbeitszeit.d = ((Stunden * 60) + Minuten) / 60