News for hackers. Stuff that matters.
Re:Your balance is $0.30000000004 by aeyes on Tuesday February 18, 2020 @11:42AM (#22357312)
Uber does not use float for money but the internal representation is converted to something displayable in the API layer.

Normally strings are used, for example: https://developer.uber.com/docs/riders/references/api/v1.2/r...

Guess somebody messed up for this case.

Re:Your balance is $0.30000000004 by mason55 on Tuesday February 18, 2020 @12:13PM (#22357645)
Interestingly even in your link you can see that most of the money values (subtotal, total_fare, total_charged) are strings but for some reason total_owed is a float.

Presumably someone messed up but it wasn't caught in code review.

Re:Your balance is $0.30000000004 by vivan on Tuesday February 18, 2020 @12:10PM (#22357615)
In this case, the value is the "surge_multiplier", which is indeed a float: https://developer.uber.com/docs/riders/references/api/v1.2/e...