Author Topic: Tagged Value wrong Values  (Read 3772 times)

reherz

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Tagged Value wrong Values
« on: February 10, 2017, 10:59:19 pm »
Hi,

i have two different customized Tagged Value Fields of Type Decimal and Problems with the Data in both fields

--> While editing and reading information in Element Properties / Tagged Values the value of the field is "0,0" (or a different value)
--> requesting the value via SQL or in Generated Documents the value changes to e.g. "1,9853888367081E-120"

Why are there two different values? How can I request the right value?
Bizarrely not all values are different, some values are the same in both requesting ways.

Thanks!

- I'm using EA 12.1 -

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Tagged Value wrong Values
« Reply #1 on: February 10, 2017, 11:08:45 pm »
That's the nature of floats in a digital world. For all A, B element R: identity is defined if abs(A-B) < epsilon. And 1E-120 looks very close to that epsilon.

q.

VKN

  • EA User
  • **
  • Posts: 187
  • Karma: +9/-1
    • View Profile
Re: Tagged Value wrong Values
« Reply #2 on: February 13, 2017, 09:56:10 am »
How can I request the right value?
As a workaround, you can change your system's decimal separator to a period (.)