Post Reply 
Convert decimal > fraction in program
12-11-2015, 04:00 PM
Post: #8
RE: Convert decimal > fraction in program
(12-11-2015 02:40 PM)StephenG1CMZ Wrote:  
(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
It is an interesting alternative StephenG1CMZ, but see that the goal was to show an matrix as in Figure 2, in a program that posted (MeuSimp). However, in both alternatives, does not appear to need.


Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
RE: Convert decimal > fraction in program - jrozsas - 12-11-2015 04:00 PM

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