Question

2
Replies
365
Views
Close popover
Cloe Walker (CloeW938)
IT Solution Service

IT Solution Service
SG
CloeW938 Member since 2018 158 posts
IT Solution Service
Posted: May 2, 2020
Last activity: May 8, 2020
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 Experience