I have a mathematica file with an algorithm that feeds another program with data.
my problem is that some times (randomly) the output is in fraction instead of decimal. The other program (java) does not read fractions, so I have to feed it with decimal numbers.
One solution is to use the N[.] function before it output, but this is really painful procedure. Is there any setting in mathematica forcing it to return as output only decimals?
Tell me more
×
Mathematica Stack Exchange is a question and answer site for
users of Mathematica. It's 100% free, no registration required.
|
|
||||
|
You can use
If you set
To restore
|
|||
|
|
|
Two things might help you here:
For example:
|
|||||
|



Nat the very last stage before sending the output to Java. – Verbeia♦ Aug 1 '12 at 14:062instead of2.or2`– Rojo Aug 1 '12 at 19:02