您所指的问题是一个浮点问题已经出现在许多版本中,我相信所有浮点运算都会发生这种情况,但由于某些原因,VEE不会在内部或转换为“字符串”时正确截断它
如果你尝试使用Real32,问题甚至会变得更糟,加上没有Real32数组常量。
我使用的修复是使用带有重要数字的real64将数组输出运行到“To String”对象中。
例如,数字设置为6。
当然要将它提供给一个弹出窗口你需要有一个数组,所以将它运行到一个“从字符串”对象并使用标记格式和一维数组设置“结束”,你可以将它提供给你的“流行”
-Up“列表。
上面提到的替代方法是使用重复“for range”对象循环遍历数组 - 通过“To String”对象然后进入收集器。
我知道这是一个令人讨厌的创可贴,但我不确定另一种方法,因为我们的程序使用程序化标签,他们必须用txt,我遇到同样的问题。
- 詹姆士
以上来自于谷歌翻译
以下为原文
The problem you are referring to is a floating point issue that's been around for a number of releases and I believe is something that happens with all floating point arithmetic but for some reason VEE does not truncate it properly either internally or when converting to "string"
If you try to use Real32 the issue even gets worse, plus there is no Real32 array constant either.
The fix I use is to run the array output into a "To String" object using real64 with a significant no. of digits set to 6 for example. of course to feed this into a pop-up you will need to have it an array so run it into a "From String" object and use token format and a 1D array set "to end" and you can feed this into your "Pop-Up" list.
An alternative to the above mentioned is to loop through your array using a repeat "for range" object - through the "To String" object then into a collector.
I know it's a nasty band-aid but I am not sure of another way to do it, Since our program uses programmatic labels, they must be fed with txt and I run into the same issue.
- James
您所指的问题是一个浮点问题已经出现在许多版本中,我相信所有浮点运算都会发生这种情况,但由于某些原因,VEE不会在内部或转换为“字符串”时正确截断它
如果你尝试使用Real32,问题甚至会变得更糟,加上没有Real32数组常量。
我使用的修复是使用带有重要数字的real64将数组输出运行到“To String”对象中。
例如,数字设置为6。
当然要将它提供给一个弹出窗口你需要有一个数组,所以将它运行到一个“从字符串”对象并使用标记格式和一维数组设置“结束”,你可以将它提供给你的“流行”
-Up“列表。
上面提到的替代方法是使用重复“for range”对象循环遍历数组 - 通过“To String”对象然后进入收集器。
我知道这是一个令人讨厌的创可贴,但我不确定另一种方法,因为我们的程序使用程序化标签,他们必须用txt,我遇到同样的问题。
- 詹姆士
以上来自于谷歌翻译
以下为原文
The problem you are referring to is a floating point issue that's been around for a number of releases and I believe is something that happens with all floating point arithmetic but for some reason VEE does not truncate it properly either internally or when converting to "string"
If you try to use Real32 the issue even gets worse, plus there is no Real32 array constant either.
The fix I use is to run the array output into a "To String" object using real64 with a significant no. of digits set to 6 for example. of course to feed this into a pop-up you will need to have it an array so run it into a "From String" object and use token format and a 1D array set "to end" and you can feed this into your "Pop-Up" list.
An alternative to the above mentioned is to loop through your array using a repeat "for range" object - through the "To String" object then into a collector.
I know it's a nasty band-aid but I am not sure of another way to do it, Since our program uses programmatic labels, they must be fed with txt and I run into the same issue.
- James
举报