Question

2
Replies
505
Views
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: June 14, 2021
Posted: 2 May 2020 22:17 EDT
Last activity: 14 Jun 2021 7:38 EDT
Closed
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
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.