简体   繁体   English

Informatica中的数字数据类型将数字转换为指数形式

[英]Number datatype in informatica is converting the number into exponential form

My problem is that informatica mapping is converting a number of the form 8000196005072015 to the form 8.000196005072015e+15.The precession of the number datatype for this field is set at 50 and its scale is set to 0. How can I prevent this from happening without trimming the data(8000196005072015). 我的问题是,informatica映射将数字形式从8000196005072015转换为形式8.000196005072015e + 15。此字段的数字数据类型的岁差设置为50,其小数位数设置为0。如何防止这种情况发生而不修剪数据(8000196005072015)。

Thanks 谢谢

There is an important difference between the decimal and double datatypes in PowerCenter: PowerCenter中的decimaldouble精度数据类型之间有一个重要区别:

  • decimal – a fixed-point representation of real numbers, decimal –实数的定点表示,
  • double – a floating-point representation of real numbers. double实数的浮点表示。

However, defining a decimal port does not automatically mean the Integration Service will treat values passing though this port as fixed-point numbers. 但是,定义decimal端口并不自动意味着Integration Service将通过该端口传递的值视为定点数字。

Port datatype | Precision |  High Precision
              |           |   Off  |   On
---------------------------------------------
decimal       |   0-28    | double | decimal
decimal       |  over 28  | double | double

To actually work with decimal values the following conditions have to be met: 要实际使用decimal值,必须满足以下条件:

  1. the datatype of the port is decimal and 端口的数据类型为decimal
  2. the precision of the port is 28 or less and 端口的精度为28或更小
  3. the session option Enable high precision is enabled. 会话选项“ 启用高精度”已启用。

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

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