octave-maintainers
[Top][All Lists]
Advanced

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

Re: static_cast<float>(1.0) versus 1.0f?


From: John W. Eaton
Subject: Re: static_cast<float>(1.0) versus 1.0f?
Date: Tue, 17 Feb 2015 16:33:26 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.2.0

On 02/17/2015 01:51 PM, John W. Eaton wrote:
On 02/17/2015 01:28 PM, Rik wrote:

This would look a whole lot simpler, and more closely resemble the double
version of the function, if we could just use 1.0f for float compile time
constants.  Is this acceptable?

Yes.  I don't know why I sometimes used the static_cast.  We might as
well make that change globally.

I went ahead and pushed a change:

  http://hg.savannah.gnu.org/hgweb/octave/rev/9155bab86647

jwe





reply via email to

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