对于以下查询:
with
member testVal as 0.1234
member testNormal as testVal
member testPrepend as testVal, format_string="%##.00"
member testMidpend as testVal, format_string="##%.00"
member testAppend as testVal, format_string="##.00%"
select { testNormal, testPrepend, testMidpend, testAppend} on axis (0)
from [SomeRandomPlace]
返回以下内容:
testNormal testPrepend testMidpend testAppend
0.1234 %.12 12%.34 12.34%
这会导致问题,因为我们在 .NET 中使用相同的格式字符串作为后处理操作(某些控件要求我们这样做),并且它的行为与预期一样(由于 % 符号将其乘以 100)。
这是记录在案的行为吗?还是一些不为人知的错误?还是我做错了什么/奇怪的事情?我觉得testPrepend
成员也应该乘以100,但事实并非如此。