简体   繁体   English

Crystal Report 十进制值转整数

[英]Crystal Report Decimal value to Integer

In database it is stored in Bigint but when comes tocrystal reports page it displays in decimal format;在数据库中,它存储在 Bigint 中,但在水晶报表页面中,它以十进制格式显示; Value is in database (3), But when comes to crystal reports page becomes (3.00).值在数据库 (3) 中,但是当涉及到水晶报表页面时,它变成了 (3.00)。 How to change it?如何改变它?

样本

but I need it in integer round off like below但我需要整数四舍五入,如下所示

A | B
7 | 6

i'm using visual studio 2005.我正在使用 Visual Studio 2005。

there is no number format tab没有数字格式选项卡在此处输入图片说明

  1. Select the number field on the report.选择报告上的数字字段。
  2. Right-click and format.右键单击并格式化。
  3. On the Number tab, click on the Customize button.在数字选项卡上,单击自定义按钮。
  4. On the Number tab, set the number of decimal places to 0.在数字选项卡上,将小数位数设置为 0。
  1. Select The field选择字段
  2. Right Click右键点击
  3. Click on Format Object单击格式对象
  4. Click on Number Format点击数字格式
  5. Click on Customize点击自定义
  6. On Decimalas Select 1在小数点上选择 1

Click on OK点击确定

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM