cancel
Showing results for 
Search instead for 
Did you mean: 

Decimal Places

Former Member
0 Kudos

in the API, if I do the following, I always get 0 decimal places. The API never returns the correct number of decimal places. I notice that the documentation says the IField interface DecimalPlaces property returns a Long, yet the intellisense in Visual Studio shows it returning a byte. Could this be a bug?

CharacteristicValue cv = (CharacteristicValue) objField.Value;

htmlOut = cv.GetString(objField.DimensionID, objField.DecimalPlaces, objField.ShowFractions, cv.UnitID);

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Mike,

I've gotten confirmation that this is indeed a bug and will be fixed in the next SP.

Regards,

Richard

Former Member
0 Kudos

I'm on SP5 and this is still throwing an error. Does it work for anyone?

Answers (0)