What type of scientific values are in your csv file? For eg:- The expression "E" ( 1.2E3 ) is a standard MySQL Scientific value. You can directly load the contents in the csv file to the MySQL db using the command "LOAD DATA INFILE".
I am not sure about any inbuilt function in Ruby to convert scientific value to normal format. But you can convert one base to another base Eg:- octal to decimal or binary to decimal etc. It seems like you can directly enter the value 2.60E+12 to your database. The expression "E" is a standard MySQL Scientific value and your database will recognize it. Do you face any issue since the value is in scientific format?
2008-07-28 08:54 AM
Hello Guest! In order to post you must be an active client with us, please log in or sign up today!