Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Truncating a decimal to an integer

New Here ,
Aug 22, 2017 Aug 22, 2017

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
964
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Aug 22, 2017 Aug 22, 2017

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

Cheers

Eddie

Translate
Advocate ,
Aug 22, 2017 Aug 22, 2017

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

Cheers

Eddie

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

Thank you. Worked perfectly.

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

You're welcome.

Cheers

Eddie

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