|
From: | Mike B. |
Subject: | variables `inheriting' values, rounding |
Date: | Mon, 25 Jan 2010 22:08:20 -0800 (PST) |
Thanks for replying. As an example. I have a structure A which is defined in the begining of the code but it should actually inherit values from another structure defined later, something like algorithm_parameters = settings; . . . settings = [ 0, 0.4 ]; Also, is there a function to round real numbers to a certain accuracy (digits after the decimal) so they are also stored rounded (not just displayed rounded), something like: round( 1.1217, 3 ) gives 1.122 etc. Thanks. --- On Tue, 26/1/10, John W. Eaton <address@hidden> wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |