if Right (ToText({フィールド}),4)="0000" then 0
else if Right (ToText({フィールド}),3)="000" then 0
else if Right (ToText({フィールド}),2)="00" then 0
else if Right (ToText({フィールド}),1)="0" then 0
else 2
else if Right (ToText({フィールド}),3)="000" then 0
else if Right (ToText({フィールド}),2)="00" then 0
else if Right (ToText({フィールド}),1)="0" then 0
else 2