Take the 2-minute tour ×  Suppose I have an array of non-
repeating decimal numbers:  v1 = 0.0588235294117647,
0.1428571428571429, 0.0526315789473684, 0.0769230769230769  I
would like to convert this to an array of integers by
multiplying/dividing all the elements by a single number:  v2 =
1729, 4199, 1547, 2261  All numbers need to be in their most
simple form as well. To clarify, this is the solutions column of
a matrix with one free variable. I need to make that variable
equal something that makes the entire column consist of whole
integers.  I've tried a bunch of things, but nothing seems to
work all the time.  I need some type of algorithm so that I can
automate this process.  share|improve this question I see no
relationship between these values. Where did you get them? How
did you arrive at those integers? –  duffymo Dec 24 '11 at 2:33
It's unclear what you want the relationship between v1 and v2 to
be. –  Greg Hewgill Dec 24 '11 at 2:33 v1 and v2 are simply
examples to demonstrate what I meant by "non-