octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: get(0, 'format') change between 4.0 and 4.2 ?


From: Mike Miller
Subject: Re: get(0, 'format') change between 4.0 and 4.2 ?
Date: Mon, 14 Aug 2017 09:17:33 -0700
User-agent: NeoMutt/20170609 (1.8.3)

On Mon, Aug 14, 2017 at 08:57:55 -0700, CdeMills wrote:
> Hello,
> 
> while testing the dataframe package under 4.2.1, I found that get(0,
> 'format') now generates an error as this property doesn't exist anymore;
> while it was available in 4.0.
> 
> The basic question is: how to get the format last set using the 'format'
> command in 4.2 ?

Unfortunately this changed from 4.0 to 4.2, and will change again in
4.4.

In Octave 4.2, use

    fmt = __formatstring__ ();

This function is also available in Octave 4.0, by the way.

In Octave 4.4, this will become

    fmt = format ();

Similarly, if you need what used to be called 'FormatSpacing', in Octave
4.2 you would use __compactformat__, and in Octave 4.4 you would call
format with two output arguments.

-- 
mike

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]