48 49 50 51 52 53 54
# File 'lib/parsi_digits.rb', line 48 def to_f if has_parsi_digits? with_western_digits.sub("/",".").western_to_f else western_to_f end end