Dealing with API responses where integers have more than 16 digits

Dealing with API responses where integers have more than 16 digits

Hi there

How do I deal with an api response contaning an int or float with more than 16 digits (before any decimal places for a float).

I constantly receive the response "Unable to cast the 'BigInteger' value into a 'BIGINT' value because the input is in an invalid format".

I work in a world where septillions matter, and have decimal places.  

How do I handle these numbers (assuming there is no function to deal with them in memory)

Many thanks

Duncan