[4.5.2] - Standard Rollbase way of retrieving the floating value of a currency field - Forum - Rollbase - Progress Community

[4.5.2] - Standard Rollbase way of retrieving the floating value of a currency field

 Forum

[4.5.2] - Standard Rollbase way of retrieving the floating value of a currency field

This question has suggested answer(s)

Hello,

I have a currency field with a format $ 000,000,000.00 and I'd like to retrieve the decimal value from it. What is the best way to achieve this using rollbase functions? Kindly let me know.

rbf_getFieldValue("currency_field"); // returns the field value with the currency code i.e. $ 123, 456, 789.10

Cheers.

Iram

All Replies
  • Hi Iram,

    Assuming you are referring to client-side API functions for interacting with form pages rbf_getFieldValue correctly returns the numerical real number value of a currency field and not a formatted literal string.

    Can you please share more context as to where are you seeing this indifferent behavior.

    Regards,
    Siraj.