To figure out the ZEC value

I am going to developed app from the Zec… When I call the api i am getting the like 3182009 but it would be
0.03182 ZEC.

Can anyone please suggest me on I can get the exact value.

cast number to string
add 0.0 in front
cast back to float

what language are you going to be developing in?

Thanks for the reply…!

But what about the 1.33333 something like value. For this we can assume or
fix that prefix 0.0. I do have something the formula.

Thank You,
Krunal Ramani