Creates an object that represents a number behavior. At any given time, the value of the behavior is a floating point number.
For more information about behaviors, see the Behavior class.
For relevant methods and fields from the Statics class, see the following topics.
NumberBvr Methods
extract Extracts the value of a behavior, returning a Java object. toString(double) Converts a double to a StringBvr. toString(NumberBvr) Converts a NumberBvr to a StringBvr. newUninitBvr Enables you to refer to a NumberBvr behavior before that behavior has been defined.
Extracts the value of the behavior, returning a Java object. The behavior must have a constant value.
Syntax
public Object extract( );
Return Value
Returns a Java object. For more information about java.lang.Object objects, consult a Java reference.
Converts a double to a StringBvr.
Syntax
public StringBvr toString( double a );
Parameters
- a
- The double value representing the number of digits to use after the decimal point.
Return Value
Returns the StringBvr object.
Converts a NumberBvr to a StringBvr.
Syntax
public StringBvr toString( NumberBvr a );
Parameters
- a
- NumberBvr object representing the number of digits to use after the decimal point.
Return Value
Returns the StringBvr object.
Enables you to refer to a NumberBvr behavior before that behavior has been defined. With this method you can create the behavior and use it in the definition of other behaviors, but not actually define its contents until some later point. (This is accomplished with the init method, which is available on all behaviors.) The system generates a run-time error if you initialize a non-uninitialized behavior, initialize an uninitialized behavior that has already been initialized, or run an initialized behavior that has not yet been initialized.
Syntax
public static NumberBvr newUninitBvr( );
Return Value
Returns the NumberBvr object.
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.