
Creator
2018-06-06
01:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Num function
I am using NUM(expression,'#.0%') to get results like 78.4%.
But how do i make it whole number without decimal, i.e rounding.
I want 78.49 as 79% and 78.44 as 78%. Any ideas?
Thanks in advance
- Tags:
- num()
- round function
1,103 Views
4 Replies

MVP
2018-06-06
01:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How is 78.49% = 79%? Why not 78%? Isn't the cut off 78.5%?
940 Views

Creator
2018-06-06
01:44 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yeah..that is correct. 78.5 should convert to 79%. I was trying to get 2 decimal accuracy. But even 1 decimal would work
940 Views

MVP
2018-06-06
01:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This seems to work for me
=Num(Round('78.49%', 0.01), '#.%')
Replace 78.49% with your field or expression


Creator II
2018-06-06
01:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ria,
May be
if(wildmatch(NUM(expression,'#.00%'),'*.49%'),
Num(NUM(expression,'#.00%')+.0001,'##.0%'),
NUM(expression,'#.0%'))
Thanks,
RT
940 Views
