Difference between revisions of "Number class"
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{CGscriptClass_Template | {{CGscriptClass_Template | ||
|Name=<nowiki>Number</nowiki> | |Name=<nowiki>Number</nowiki> | ||
|Description=<nowiki>The number object</nowiki> | |Description=<nowiki>The number object</nowiki> | ||
− | |Constructors= | + | |InheritsFrom=object|Constructors= |
{{CGscriptConstructors_Template|Parameters= | {{CGscriptConstructors_Template|Parameters= | ||
{{CGscriptParameters_Template|Type=string|Name=<nowiki>value</nowiki>|Description=<nowiki>Value to give object</nowiki>}} | {{CGscriptParameters_Template|Type=string|Name=<nowiki>value</nowiki>|Description=<nowiki>Value to give object</nowiki>}} | ||
Line 11: | Line 10: | ||
|Description=<nowiki>New object with the given value</nowiki>}} | |Description=<nowiki>New object with the given value</nowiki>}} | ||
|Methods= | |Methods= | ||
+ | {{CGscriptMethods_Template|ReturnType=int|Name=<nowiki>CompareTo</nowiki>|Parameters= | ||
+ | {{CGscriptParameters_Template|Type=number|Name=<nowiki>value</nowiki>|Description=<nowiki>Value to compare to</nowiki>}} | ||
+ | |Description=<nowiki>Compare to object. See ArrayConstant.OrderBy</nowiki>}} | ||
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Description=<nowiki>The string representation of the object.</nowiki>}} | {{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Description=<nowiki>The string representation of the object.</nowiki>}} | ||
|Properties= | |Properties= | ||
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}} | {{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}} | ||
− | {{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Description=<nowiki>Get information about this class.</nowiki>}} | + | {{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Inherited=object|Description=<nowiki>Get information about this class.</nowiki>}} |
}} | }} |
Latest revision as of 06:18, 2 July 2020
Number
The number object
Parent class
Inherits from object
Constructors
- (string value "Value to give object") - New object with the given value
- (number value "Value to give object") - New object with the given value
Methods
- int CompareTo(number value "Value to compare to") - Compare to object. See ArrayConstant.OrderBy
- string ToString() - The string representation of the object.
Properties
- string ObjectTypeName { get; } - The name of the type of object.
- (From object) TypeInformation TypeInformation { get; } - Get information about this class.