You need to sign in to do that
Don't have an account?
Integer, Double or Decimal?
Apologies as I'm sure this must be a stupid question but I'm clearly missing something!
I've create a field through the UI called Quantity and set it as a number with 0 decimal places.
I want to test if this is a factor of another number I have.
The schema browser says that the DB defines this field as a Double and not an int. OK, slightly annoying but I'll convert it integer x = double.intValue(Quantity__c).
Force.com complains that there is no method intValue that accepts a Decimal!
So what have I created, an integer, a double or a decimal? Is there a way to create an Integer field in the UI?
TIA
The UI always creates a decimal, sou you could use decimal.intvalue(quantity__c)
Thanks MarceldeB. helped me today!