Highlighted

Truncating a decimal to an integer

New Here ,
Aug 22, 2017

Copy link to clipboard

Copied

I have a calculation in Report Builder that possibly returns a value that contains a decimal. I need to truncate this value to an integer. "Floor" is not in the mathematical functions. Is there a way in Report Builder to truncate a value?

Ex: 9.86 needs to appear as 9 not rounded to 10.

Use the ColdFusion "Int()" function. See the ColdFusion function reference for details.

Cheers

Eddie

TOPICS
Reporting

Views

540

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Truncating a decimal to an integer

New Here ,
Aug 22, 2017

Copy link to clipboard

Copied

I have a calculation in Report Builder that possibly returns a value that contains a decimal. I need to truncate this value to an integer. "Floor" is not in the mathematical functions. Is there a way in Report Builder to truncate a value?

Ex: 9.86 needs to appear as 9 not rounded to 10.

Use the ColdFusion "Int()" function. See the ColdFusion function reference for details.

Cheers

Eddie

TOPICS
Reporting

Views

541

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 22, 2017 0
Advocate ,
Aug 22, 2017

Copy link to clipboard

Copied

Use the ColdFusion "Int()" function. See the ColdFusion function reference for details.

Cheers

Eddie

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 22, 2017 0
New Here ,
Aug 22, 2017

Copy link to clipboard

Copied

Thank you. Worked perfectly.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 22, 2017 0
Advocate ,
Aug 22, 2017

Copy link to clipboard

Copied

You're welcome.

Cheers

Eddie

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 22, 2017 0