Skip to content

Commit

Permalink
latitude and longitude should be float instead of string. (faker-ruby…
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitnot authored and vbrazo committed May 20, 2018
1 parent fa8d8d3 commit f3068db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/faker/address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ def country_code_long
end

def latitude
((rand * 180) - 90).to_s
((rand * 180) - 90).to_f
end

def longitude
((rand * 360) - 180).to_s
((rand * 360) - 180).to_f
end

def full_address
Expand Down

0 comments on commit f3068db

Please sign in to comment.