Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Help with rounding in script

I’ve attempted to do the following functions within the script and nothing seems to be working to remove the trailing numbers and round to the nearest cent.

Num([Posted Base Amount], ‘#,##0.00’)

Num#([Posted Base Amount], ‘#,##0.00’)

Round([Posted Base Amount], .01)

Ceil([Posted Base Amount], .01)

Floor([Posted Base Amount], .01)

Round(([Posted Base Amount] * 100) / 100

Left(([Posted Base Amount], Index(([Posted Base Amount], ‘.’)+2)

Has anyone seen anything like this before?

Round([Posted Base Amount], .01) works as an expression on the front end, but was wondering if there was anything in the back end that would fix the number throughout the application.

5 Replies
Anonymous
Not applicable
Author

The data  source (  People soft)

Anonymous
Not applicable
Author

attached is the QVD

m_woolf
Master II
Master II

When I load your qvd, the numbers are all rounded to the nearest cent.

johnca
Specialist
Specialist

Indeed...the data in your qvd is only 2 decimal places...

rounded.png

Anonymous
Not applicable
Author

Thank you for your response. let me check that and get  back to you