Problem double.Parse Xojo 2022 1.1

Hello, I have the following problem:
I want to convert the values from a string array to double. However, I always get 0 back.
See code and output. What am I doing wrong?

for i as integer = 0 to 11  
  system.DebugLog "index:" + i.totext + "#"  
  system.DebugLog "Step1:>" +Vakuumwerte(i)+"<"
  
  var s as string = Vakuumwerte(i)
  system.DebugLog "Step2:>" + s+"<"  
  var dwert as double = double.Parse(s)
  system.DebugLog "Step3:>" +dwert.totext+"<"  
next

index:0#
Step1:>-0.975694418<
Step2:>-0.975694418<
Step3:>0.000000<
index:1#
Step1:>-0.002278626<
Step2:>-0.002278626<
Step3:>0.000000<
index:2#
Step1:>-0.9228515625<
Step2:>-0.9228515625<
Step3:>0.000000<
index:3#
Step1:>-0.9154731035<
Step2:>-0.9154731035<
Step3:>0.000000<
index:4#
Step1:>-0.925057888<
Step2:>-0.925057888<
Step3:>0.000000<
index:5#
Step1:>0.0012658834<
Step2:>0.0012658834<
Step3:>0.000000<
index:6#
Step1:>-0.8978949785<
Step2:>-0.8978949785<
Step3:>0.000000<
index:7#
Step1:>-0.9102647305<
Step2:>-0.9102647305<
Step3:>0.000000<
index:8#
Step1:>-0.914785862<
Step2:>-0.914785862<
Step3:>0.000000<
index:9#
Step1:>-0.9220920205<
Step2:>-0.9220920205<
Step3:>0.000000<
index:10#
Step1:>-0.9118923545<
Step2:>-0.9118923545<
Step3:>0.000000<
index:11#
Step1:>-0.9098669291<
Step2:>-0.9098669291<
Step3:>0.000000<

Can you inspect s in debugger?
is it UTF-8 encoding?
Is there maybe some invisible character before the minus?

1 Like