Convert decimal > fraction in program
12-11-2015, 06:57 PM (This post was last modified: 12-11-2015 07:00 PM by StephenG1CMZ.)
Post: #14
 StephenG1CMZ Senior Member Posts: 918 Joined: May 2015
RE: Convert decimal > fraction in program
I was wondering whether what is needed is not exact(matrix), but matrix[1 2]:=exact(1.5) - making each individual element exact one by one. Unfortunately, I don't think that can be done - when I tried it I got a syntax error.

However in a spreadsheet entering exact(1.5) into a cell does work.
Although only the current cell is displayed formatted, the other cells being displayed decimal.
But once you have the exact elements in a rectangular set of spreadsheet cells (or maybe just a list or array), you could then print them out; but it will need formatting - I don't think that will be better than your Row solution.

Unless someone else has a solution...

Stephen Lewkowicz (G1CMZ)
 « Next Oldest | Next Newest »

 Messages In This Thread Convert decimal > fraction in program - jrozsas - 12-09-2015, 08:23 PM RE: Convert decimal > fraction in program - Marcus von Cube - 12-09-2015, 09:01 PM RE: Convert decimal > fraction in program - jrozsas - 12-09-2015, 10:56 PM RE: Convert decimal > fraction in program - StephenG1CMZ - 12-09-2015, 11:55 PM RE: Convert decimal > fraction in program - jrozsas - 12-10-2015, 07:21 PM RE: Convert decimal > fraction in program - StephenG1CMZ - 12-11-2015, 02:40 PM RE: Convert decimal > fraction in program - jrozsas - 12-11-2015, 04:00 PM RE: Convert decimal > fraction in program - Dirk. - 12-10-2015, 10:18 AM RE: Convert decimal > fraction in program - StephenG1CMZ - 12-11-2015, 04:10 PM RE: Convert decimal > fraction in program - Tim Wessman - 12-11-2015, 04:30 PM RE: Convert decimal > fraction in program - jrozsas - 12-11-2015, 04:30 PM RE: Convert decimal > fraction in program - luisphysics - 12-11-2015, 04:58 PM RE: Convert decimal > fraction in program - jrozsas - 12-11-2015, 06:11 PM RE: Convert decimal > fraction in program - StephenG1CMZ - 12-11-2015 06:57 PM

User(s) browsing this thread: 1 Guest(s)