
Not applicable
2016-03-11
11:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Round Division to Two Decimal Places
Hello,
I have an expression something like count(x)/count(y) the results are sometimes many decimal places Ex. 1234/3.9 = 316.410256410256. Can you give me an example of the syntax to limit it to two decimal places?
Thanks
1,505 Views
4 Replies

MVP
2016-03-11
12:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May be this:
Num(Count(x)/Count(y), '##.00')

Partner - Champion III
2016-03-11
12:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you want to round then use the round() function: Round(Count(x)/Count(y), 0.01)
Other options are the floor() and ceil() function. The num() function will not round the value, but only change the display format.
talk is cheap, supply exceeds demand

Not applicable
2016-03-11
02:42 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for answering this.
1,306 Views

Not applicable
2016-03-11
02:44 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for answering this.
1,306 Views
