Question

2
Replies
125
Views
CloeW938 Member since 2018 135 posts
IT Solution Service
Posted: 4 months ago
Last activity: 4 months 3 weeks ago
Solved

How to check if property is Decimal

Hi,

I would like to check if property value is Decimal or not. I used an out-of-the-box function as below.

@isNumber(Param.Price)

When I pass "100", it returns true (works fine). However, if I pass "100.1", it returns false (does not work). I guess this function checks if it is an Integer.

Is there any out-of-the-box function to check if it's Decimal? I would expect one that returns true for both "100" and "100.1".

 

Thanks, 

 

***Edited by Moderator Marissa to update Platform Capability tags****

Pega Platform 8.4.1 User Interface
Share this page LinkedIn