How to fix Floating point exception in PostgreSQL | DevErrors