@univerjs/engine-formula v0.4.2 • Docs
Class: NumberValueObject
Extends
Constructors
new NumberValueObject()
new NumberValueObject(rawValue): NumberValueObject
Parameters
Parameter | Type |
---|---|
rawValue | number |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:459 (opens in a new tab)
Properties
Property | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|
pattern | string | '' | BaseValueObject .pattern | packages/engine-formula/src/basics/object-class-type.ts:18 (opens in a new tab) |
Methods
abs()
abs(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:1163 (opens in a new tab)
acos()
acos(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:911 (opens in a new tab)
acosh()
acosh(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:927 (opens in a new tab)
asin()
asin(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:975 (opens in a new tab)
asinh()
asinh(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:991 (opens in a new tab)
atan()
atan(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:1039 (opens in a new tab)
atan2()
atan2(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:1055 (opens in a new tab)
atan2Inverse()
atan2Inverse(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:355 (opens in a new tab)
atanh()
atanh(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:1091 (opens in a new tab)
cbrt()
cbrt(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:863 (opens in a new tab)
ceil()
ceil(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:1243 (opens in a new tab)
ceilInverse()
ceilInverse(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:452 (opens in a new tab)
compare()
compare(valueObject, operator): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
operator | compareToken |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:634 (opens in a new tab)
compareBy()
compareBy(value, operator): BaseValueObject
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
operator | compareToken |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:729 (opens in a new tab)
concatenate()
concatenate(value, concatenateType): string
Parameters
Parameter | Type | Default value |
---|---|---|
value | string | number | boolean | undefined |
concatenateType | ConcatenateType | ConcatenateType.FRONT |
Returns
string
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:249 (opens in a new tab)
concatenateBack()
concatenateBack(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
BaseValueObject
.concatenateBack
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:627 (opens in a new tab)
concatenateFront()
concatenateFront(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
BaseValueObject
.concatenateFront
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:620 (opens in a new tab)
convertToBooleanObjectValue()
convertToBooleanObjectValue(): BooleanValueObject
Returns
Overrides
BaseValueObject
.convertToBooleanObjectValue
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:1279 (opens in a new tab)
convertToNumberObjectValue()
convertToNumberObjectValue(): NumberValueObject
Returns
Overrides
BaseValueObject
.convertToNumberObjectValue
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:1275 (opens in a new tab)
cos()
cos(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:879 (opens in a new tab)
cosh()
cosh(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:895 (opens in a new tab)
count()
count(): BaseValueObject
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:115 (opens in a new tab)
countA()
countA(): BaseValueObject
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:119 (opens in a new tab)
countBlank()
countBlank(): BaseValueObject
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:123 (opens in a new tab)
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
packages/engine-formula/src/basics/object-class-type.ts:20 (opens in a new tab)
divided()
divided(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:548 (opens in a new tab)
dividedBy()
dividedBy(value): BaseValueObject
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:704 (opens in a new tab)
equalZero()
equalZero(): boolean
Returns
boolean
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:504 (opens in a new tab)
exp()
exp(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:1147 (opens in a new tab)
floor()
floor(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:1211 (opens in a new tab)
floorInverse()
floorInverse(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:442 (opens in a new tab)
getArrayValue()
getArrayValue(): Nullable<BaseValueObject>[][]
Returns
Nullable
<BaseValueObject
>[][]
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:62 (opens in a new tab)
getNegative()
getNegative(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:477 (opens in a new tab)
getPattern()
getPattern(): string
Returns
string
Inherited from
Defined in
packages/engine-formula/src/basics/object-class-type.ts:24 (opens in a new tab)
getReciprocal()
getReciprocal(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:481 (opens in a new tab)
getValue()
getValue(): number
Returns
number
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:465 (opens in a new tab)
isArray()
isArray(): boolean
Returns
boolean
Inherited from
Defined in
packages/engine-formula/src/basics/object-class-type.ts:52 (opens in a new tab)
isAsyncArrayObject()
isAsyncArrayObject(): boolean
Returns
boolean
Inherited from
BaseValueObject
.isAsyncArrayObject
Defined in
packages/engine-formula/src/basics/object-class-type.ts:44 (opens in a new tab)
isAsyncObject()
isAsyncObject(): boolean
Returns
boolean
Inherited from
Defined in
packages/engine-formula/src/basics/object-class-type.ts:40 (opens in a new tab)
isBoolean()
isBoolean(): boolean
Returns
boolean
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:87 (opens in a new tab)
isCube()
isCube(): boolean
Returns
boolean
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:75 (opens in a new tab)
isEqual()
isEqual(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:185 (opens in a new tab)
isEqualType()
isEqualType(object): boolean
Parameters
Parameter | Type |
---|---|
object | ObjectClassType |
Returns
boolean
Inherited from
Defined in
packages/engine-formula/src/basics/object-class-type.ts:60 (opens in a new tab)
isError()
isError(): boolean
Returns
boolean
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:95 (opens in a new tab)
isGreaterThan()
isGreaterThan(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:205 (opens in a new tab)
isGreaterThanOrEqual()
isGreaterThanOrEqual(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
BaseValueObject
.isGreaterThanOrEqual
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:193 (opens in a new tab)
isLambda()
isLambda(): boolean
Returns
boolean
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:91 (opens in a new tab)
isLessThan()
isLessThan(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:201 (opens in a new tab)
isLessThanOrEqual()
isLessThanOrEqual(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
BaseValueObject
.isLessThanOrEqual
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:197 (opens in a new tab)
isNotEqual()
isNotEqual(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:189 (opens in a new tab)
isNull()
isNull(): boolean
Returns
boolean
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:99 (opens in a new tab)
isNumber()
isNumber(): boolean
Returns
boolean
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:473 (opens in a new tab)
isReferenceObject()
isReferenceObject(): boolean
Returns
boolean
Inherited from
BaseValueObject
.isReferenceObject
Defined in
packages/engine-formula/src/basics/object-class-type.ts:48 (opens in a new tab)
isString()
isString(): boolean
Returns
boolean
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:79 (opens in a new tab)
isValueObject()
isValueObject(): boolean
Returns
boolean
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:40 (opens in a new tab)
log()
log(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:1107 (opens in a new tab)
log10()
log10(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:1127 (opens in a new tab)
map()
map(callbackFn): BaseValueObject
return every value in the array after the callback function, excluding the error value
Parameters
Parameter | Type |
---|---|
callbackFn | callbackMapFnType |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:165 (opens in a new tab)
mapValue()
mapValue(callbackFn): BaseValueObject
return every value in the array after the callback function
Parameters
Parameter | Type |
---|---|
callbackFn | callbackMapFnType |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:175 (opens in a new tab)
max()
max(): BaseValueObject
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:107 (opens in a new tab)
mean()
mean(): BaseValueObject
Calculate the mean of the entire array.
reference https://numpy.org/doc/stable/reference/generated/numpy.mean.html#numpy.mean (opens in a new tab)
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:371 (opens in a new tab)
median()
median(): BaseValueObject
Calculate the median of the entire array.
reference https://numpy.org/doc/stable/reference/generated/numpy.median.html (opens in a new tab)
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:382 (opens in a new tab)
min()
min(): BaseValueObject
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:111 (opens in a new tab)
minus()
minus(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:508 (opens in a new tab)
minusBy()
minusBy(value): BaseValueObject
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:662 (opens in a new tab)
mod()
mod(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:570 (opens in a new tab)
modInverse()
modInverse(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:239 (opens in a new tab)
multiply()
multiply(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:530 (opens in a new tab)
multiplyBy()
multiplyBy(value): BaseValueObject
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:683 (opens in a new tab)
plus()
plus(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:485 (opens in a new tab)
plusBy()
plusBy(value): BaseValueObject
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:641 (opens in a new tab)
pow()
pow(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:795 (opens in a new tab)
powInverse()
powInverse(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:280 (opens in a new tab)
round()
round(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:1179 (opens in a new tab)
roundInverse()
roundInverse(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:432 (opens in a new tab)
setArrayValue()
setArrayValue(value): void
Parameters
Parameter | Type |
---|---|
value | BaseValueObject [][] |
Returns
void
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:71 (opens in a new tab)
setPattern()
setPattern(pattern): void
Only used in NumberValueObject
Parameters
Parameter | Type |
---|---|
pattern | string |
Returns
void
Inherited from
Defined in
packages/engine-formula/src/basics/object-class-type.ts:32 (opens in a new tab)
setValue()
setValue(value): void
Parameters
Parameter | Type |
---|---|
value | number |
Returns
void
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:469 (opens in a new tab)
sin()
sin(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:943 (opens in a new tab)
sinh()
sinh(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:959 (opens in a new tab)
sqrt()
sqrt(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:847 (opens in a new tab)
std()
std(): BaseValueObject
Calculate the standard deviation of the entire array.
reference https://numpy.org/doc/stable/reference/generated/numpy.std.html (opens in a new tab)
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:402 (opens in a new tab)
sum()
sum(): BaseValueObject
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:103 (opens in a new tab)
tan()
tan(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:1007 (opens in a new tab)
tanh()
tanh(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:1023 (opens in a new tab)
toUnitRange()
toUnitRange(): {
range: {
endColumn: -1;
endRow: -1;
startColumn: -1;
startRow: -1;
};
sheetId: '';
unitId: '';
}
Returns
{
range: {
endColumn: -1;
endRow: -1;
startColumn: -1;
startRow: -1;
};
sheetId: '';
unitId: '';
}
Name | Type | Default value | Defined in |
---|---|---|---|
range | { endColumn : -1 ; endRow : -1 ; startColumn : -1 ; startRow : -1 ; } | - | packages/engine-formula/src/engine/value-object/base-value-object.ts:46 (opens in a new tab) |
range.endColumn | number | -1 | packages/engine-formula/src/engine/value-object/base-value-object.ts:50 (opens in a new tab) |
range.endRow | number | -1 | packages/engine-formula/src/engine/value-object/base-value-object.ts:49 (opens in a new tab) |
range.startColumn | number | -1 | packages/engine-formula/src/engine/value-object/base-value-object.ts:47 (opens in a new tab) |
range.startRow | number | -1 | packages/engine-formula/src/engine/value-object/base-value-object.ts:48 (opens in a new tab) |
sheetId | string | '' | packages/engine-formula/src/engine/value-object/base-value-object.ts:52 (opens in a new tab) |
unitId | string | '' | packages/engine-formula/src/engine/value-object/base-value-object.ts:53 (opens in a new tab) |
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:44 (opens in a new tab)
var()
var(): BaseValueObject
Calculate the variance of the entire array.
reference https://numpy.org/doc/stable/reference/generated/numpy.var.html (opens in a new tab)
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:392 (opens in a new tab)
create()
static create(value, pattern): NumberValueObject
Parameters
Parameter | Type | Default value |
---|---|---|
value | number | undefined |
pattern | string | '' |
Returns
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:442 (opens in a new tab)