[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Re: format of a referenced macro
If you are just diplaying a value, you need to put the formatting and value
outside the quotes:
di "Here is " %9.2f `MIR2' "."
If you want to format the actual macro, then you could do that in the macro
definition using the :di macro extended function
local MIR2: di %9.2f stats[4,1]
----- Original Message -----
"Adam Seth Litwin" <aslitwin@MIT.EDU> wrote:
I am referencing a macro, but I can't figure out how to set the formatting
Here's what I mean...
local M1R2 = stats[4,1]
file write filename "Here is `M1R2'."
This writes a line to a file that looks like this:
Here is .2835322214434233.
How would I get it to look like:
Here is 0.28.
I just don't know where to put the %9.2f.
* For searches and help try: