function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Norm Sherman SFNorm Sherman SF 

Phantom Int / Decimal

Hi All,

 

Here is a real kicker!

 

I have a Number field defined as 18,0, which should by definition should not include decimal places.

 

When I use the frontend to enter a new value, it displays perfectly fine with no decimal places.

 

However when I perform a SOQL query I am getting a single decimal place, i.e. 11.0, 12.0, 13.0 instead of 11, 12, 13.

 

This also occurs when I use the web servers API and it is causing my external processes grief because the field should be INT.

 

What could be the cause for having mixed convesion between the frontend and backend?