Elementary: on formattng and programming mode
|
03-26-2014, 03:08 PM
Post: #2
|
|||
|
|||
RE: Elementary: on formattng and programming mode
(03-26-2014 02:56 PM)Ben Fairbank Wrote: When I construct a TEXTOUT_P(...) statement I sometimes have to mix floating and integer numbers (as, for example, displaying a test statistic and degrees of freedom). Is there a way to display the floating numbers to, let's say, three digits, but to display the integers with no decimals, i.e., as integers? And, while I have your ear, what is the programming command to change the numeric output format? For formatting, you may want to look into the STRING() command. As for int(), you may want to try something like: int("x^2-2x","x"); The arguments can be variables whose contents are strings. That is, LOCAL func:="x^2-2x"; LOCAL var:="x"; int(func,var); should work as well. Keep in mind that the result is a CAS result. Programs, however, are like command sequences executed in the Home view though. So make sure you properly handle the result. Graph 3D | QPI | SolveSys |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Elementary: on formattng and programming mode - Ben Fairbank - 03-26-2014, 02:56 PM
RE: Elementary: on formattng and programming mode - Han - 03-26-2014 03:08 PM
|
User(s) browsing this thread: 1 Guest(s)