0

Uprefix not working with U prefix

I cannot get the " u"  prefix to be recognized when extracting it from a string  the "m" "n" etc works fine.

The help file says it returns decimal 181 which is the "µ" symbol but ZCMP does not recognise this as a match.

can anyone help on this

1.005 MATH S[10] = "100uV"

1.006 MATH mem2 = UPREFIX(S[10])

1.010 ENDIF

#decimal 181

1.011 IF ZCMP(mem2,"µ")

1.012 MATH S[11]="mVolts"

1.013 ELSEIF ZCMP(mem2,"m")

1.014 MATH S[11]="uVolts"

1.015 ELSE

1.016 MATH S[11]="Volts"

1.017 ENDIF

 

1 comment

Date Votes
0
Avatar
HIDEO KOMATSU


1.001 MATH S[10] = "100uV"

1.002 MATH S[12] = UPREFIX (S[10])
1.003 MATH MEM2 = ITOC(181)
1.004 IF ZCMP(MEM2,S[12])
1.005 MATH S[11] = "uVolts"

1.006 ELSEIF ZCMP(MEM2, "m")

1.007 MATH S[11] = "mVolts"

1.008 ELSE

1.009 MATH S[11] = "Volt"

1.010 ENDIF
1.011 MATH S[11] = "mVolts"

Please sign in to leave a comment.