Hello
You are perfectly right and in some cases, I discovered that the ROUND() is required when the used numbers are the results of calculations done in the formula because when us mortals know that a division gives a finished result (0.23 for instance), it may be 0.230000000001 from the computer's point of vue.
This is why you had perhaps encounter this ROUND() in some formulas I posted here in the two last months.
I also met an oddity dealing with string coercion.
It's not described in the help 😉 but we may use the concenate operator to gather two numbers.
Alas, in some cases, when the number results of a calculation done in the formula, the result is odd and it is necessary to coerce the value as string using the FIXED() function.
Just for see here is a sample given in this forum:
A 10
B 10.11
=IF(LEFT(ROUND(B-A,12),1)="0",RIGHT(ROUND(B-A,12),LEN(ROUND(B-A,12))-1),ROUND(B- A,12))
appears as correctly spelled.
Alas, on a French system, it displays .11 when the correct value is ,11 (here we use a decimal comma)
To get rid of that, we must code:
=IF(LEFT(ROUND(B-A,12),1)="0",RIGHT(FIXED(ROUND(B-A,12)),LEN(ROUND(B-A,12))-1),R OUND(B-A,12))
The FIXED() forces the application to convert the internal decimal period in the external required decimal comma.
Yvan KOENIG (from FRANCE vendredi 4 janvier 2008 15:57:54)