I have an api that takes a float to store it However Angular is removing the .0 when sending this float number and i'm receiving this error

Hello
I have an api that takes a float to store it
However Angular is removing the .0 when sending this float number and i'm receiving this error
`"Expected float, but got integer: 100"`
A workaround would be configuring it to receive a string and check if this string is_numeric but that's an ugly workaround

Did anyone face this or know a good solution for this ?
You already invited:

If you wanna answer this question please Login or Register