You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please consider the code below.
Int 1234 is formatted like '1.234', when given back to this method the result should remain the same, but the actual result is '1'.
I think that I see a couple of problems in this example:
2. When splitting the string to even and fractional part it uses the hardcoded '.' separator. Should it use the separators deduced at the beginning of the mehod (mSeparator, tSeparator)?
3. I think that the fractionalSeparator variable is wrongly deduced. What is the use case of this separator?
The text was updated successfully, but these errors were encountered:
Please consider the code below.
Int 1234 is formatted like '1.234', when given back to this method the result should remain the same, but the actual result is '1'.
I think that I see a couple of problems in this example:
2. When splitting the string to even and fractional part it uses the hardcoded '.' separator. Should it use the separators deduced at the beginning of the mehod (mSeparator, tSeparator)?
3. I think that the fractionalSeparator variable is wrongly deduced. What is the use case of this separator?
The text was updated successfully, but these errors were encountered: