|
 |
推荐新闻 |
|
|
|
|
|
|
|
 |
新闻搜索 |
|
|
|
|
|
|
|
 |
专题文章导航 |
|
|
|
|
|
|
|
|
|
|
| [TRANSCAD]数据类型转换integer vs. Real |
| [ 作者:MICROGERM | 来源: | 时间:2004-12-22 15:10:44 ] |
|
有时候在计算的时候才发现数据类型错了,算不出来,下面是几点注意: If you use "Modify Table" to change a field type from real to integer, you are re-writing the table -- the new table has now an integer column in place of the real column. Values will be rounded to the nearest integer. Any decimal precision will be lost. If you merely want to "display" your values as integers you can select the number of decimals to display in the "Display" section of the "Modify Table" dialog box. You can also use the "Column Settings" command under the "Dataview" menu to set a desired "format" for numbers, including setting the number of decimals. Additionally, if you want to use a "Formula Field" there is the "RealToInt()" (shorthand: "R2I()") function. |
|
特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有, 本站不凭借所收集资料获取商业利益。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。 本站所有技术文章、专业软件资料仅供技术人员、高校师生学习交流之用,目的旨在促进与提高中国的交通技术水平;用户获取后不得用于商业目的,否则,所产生的法律责任本站概不负责。 |
|