Hello, Michal:

On 24-Jan-00, [EMAIL PROTECTED] wrote:

> Is it possible to print decimal values with a given precision, or to
> round them?

> For example, print 3.14159265358979 as 3.14

> I haven't found it anywhere in the docs.

You need PARSE/SERIES/COPY/PART in the latest manual, but I didn't see an
example there with a string count length...

The following gives an error, but it shouldn't IMHO. What's the point of
having "pi" if it won't substitue for the decimal number?

 new-string: COPY/PART pi 4
 PRINT new-string

** Script Error: COPY expected value argument of type: series port bitset.

...so use...

>> new-string: COPY/PART "3.14159265358979" 4
== "3.14"

It worked!

-- 

                ---===///||| Donald Dalley |||\\\===---
                     The World of AmiBroker Support
                  http://webhome.idirect.com/~ddalley
                   Member: ICOA and Team AMIGA

Reply via email to