0
New Here
,
/t5/coldfusion-discussions/truncating-a-decimal-to-an-integer/td-p/9313903
Aug 22, 2017
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.
TOPICS
Reporting
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 Correct answer
Advocate
,
Aug 22, 2017
Aug 22, 2017
Use the ColdFusion "Int()" function. See the ColdFusion function reference for details.
Cheers
Eddie
Advocate
,
/t5/coldfusion-discussions/truncating-a-decimal-to-an-integer/m-p/9313904#M176633
Aug 22, 2017
Aug 22, 2017
Copy link to clipboard
Copied
Use the ColdFusion "Int()" function. See the ColdFusion function reference for details.
Cheers
Eddie
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
hawkbk70
AUTHOR
New Here
,
/t5/coldfusion-discussions/truncating-a-decimal-to-an-integer/m-p/9313905#M176634
Aug 22, 2017
Aug 22, 2017
Copy link to clipboard
Copied
Thank you. Worked perfectly.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Advocate
,
LATEST
/t5/coldfusion-discussions/truncating-a-decimal-to-an-integer/m-p/9313906#M176635
Aug 22, 2017
Aug 22, 2017
Copy link to clipboard
Copied
You're welcome.
Cheers
Eddie
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

