added locale independent a2f method