chotorren
Forum Replies Created
-
Thank you very much for your time.
Unfortunaltely the calculation fields seem to be the same as before and still show that “1” (rounded up) if I set that field without decimals.
All the calculations work fine if the fields are set with 2 decimals. But what I need is to show only the integer part of the number (in this case a “0”).
Actually, I solved this isse with another plugin that works perfectly.
But I still want to know if this is possible to do with Forminator, for I am crazy in love with Forminator ??
Sure, that hundreds of Forminator users will have an issue like that and appreciate a solution to this thread.
Once more, thanks a lot for your time and dedication.
Roberto
The calculations I was referring to, despite the form having many fields, were the same as those shown in the image I attached in the link.
Anyways, I have duplicated the form, with only the fields I am referring to, with the fields in English as well, to make it easier for you. There you are the updated data!
https://justpaste.it/forminator-chotorren
As you can see in the image, we are trying to calculate the hours, minutes and seconds based on a given distance and pace.
There is an “INDEX” field which is the index with which we subsequently calculate the hours, minutes and seconds.
The result we should get in the end, with the values we have put in the image, is 0h, 16min, 10sec.
The value we have put in the calculation of “Hours” is the same as the index, in which we simply remove the decimals and a 0 should appear. But instead a 1 appears, making a domino effect that also influences the subsequent calculations of “minutes” and “seconds”, even giving negative results that do not make sense.
That is why we need to know if there is a way of not rounding the calculations and displaying only the natural number. In this case, a 0.
I hope this explanation is clearer now. Thank you a lot!!!
Thanks for your quick response.
I used number fields to calculate separately hours, minutes and seconds.
They’re calculated through an index which I’ve named “Cálculo MARCA”, in which the hours field (HORAS MARCA) has the same value of the index.Here you have an example image of the calculation with the code of the form in which the real number of the index should be 0, if I configure it without decimals. As you can see in the field below, the value that it shows is 1.
I hope it helps you to understand my issue. Thanks a lot!