Convert decimal > fraction in program
12-11-2015, 02:40 PM (This post was last modified: 12-11-2015 03:57 PM by StephenG1CMZ.)
Post: #7
 StephenG1CMZ Senior Member Posts: 1,023 Joined: May 2015
RE: Convert decimal > fraction in program
(12-09-2015 11:55 PM)StephenG1CMZ Wrote:  You can also use STRING(NUMBER,MODE) where a mode of 7 or 14, for example, will give a string having a fraction format.

In a separate thread, Didier has pointed out that it is better to use STRING(Number,1) with numbers, as otherwise the string may lose precision. The modes can be combined by adding them, so I now suggest something like
MSGBOX(STRING(3.14,1+7)) or 1+14

As for printing a Matrix neatly, I do not know any simple solutions.

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
 « 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)