https://kotlinlang.org logo
#compose
Title
# compose
a

Arpit Shukla

10/31/2021, 9:32 AM
r

Rick Regan

11/01/2021, 1:07 AM
a

Arpit Shukla

11/01/2021, 11:13 AM
Thanks Rick, I guess I got my answer now.
r

Rick Regan

11/01/2021, 12:04 PM
You don't show the code for getFormattedAmount(), but I think the fix is to remove anything at the 6th digit and beyond, not just the 6th (last) digit.
a

Arpit Shukla

11/01/2021, 12:07 PM
Yeah, I had to rewrite the getFormattedAmount function to not depend upon previous input and format the given string independently. Seems to work now, will update the answer on SO shortly.