@univerjs-pro/engine-formula v0.5.4
Class: NumberValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:438
Extends
Constructors
new NumberValueObject()
new NumberValueObject(rawValue): NumberValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:450
Parameters
Parameter | Type |
---|---|
rawValue | number |
Returns
Overrides
Properties
Property | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|
pattern | string | '' | BaseValueObject .pattern | submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:18 |
Methods
abs()
abs(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1154
Returns
Overrides
acos()
acos(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:902
Returns
Overrides
acosh()
acosh(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:918
Returns
Overrides
asin()
asin(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:966
Returns
Overrides
asinh()
asinh(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:982
Returns
Overrides
atan()
atan(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1030
Returns
Overrides
atan2()
atan2(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1046
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
atan2Inverse()
atan2Inverse(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:355
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
atanh()
atanh(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1082
Returns
Overrides
cbrt()
cbrt(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:854
Returns
Overrides
ceil()
ceil(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1234
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
ceilInverse()
ceilInverse(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:452
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
compare()
compare(valueObject, operator): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:625
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
operator | compareToken |
Returns
Overrides
compareBy()
compareBy(value, operator): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:720
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
operator | compareToken |
Returns
Overrides
concatenate()
concatenate(value, concatenateType): string
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:249
Parameters
Parameter | Type | Default value |
---|---|---|
value | string | number | boolean | undefined |
concatenateType | ConcatenateType | ConcatenateType.FRONT |
Returns
string
Inherited from
concatenateBack()
concatenateBack(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:618
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
BaseValueObject
.concatenateBack
concatenateFront()
concatenateFront(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:611
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
BaseValueObject
.concatenateFront
convertToBooleanObjectValue()
convertToBooleanObjectValue(): BooleanValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1270
Returns
Overrides
BaseValueObject
.convertToBooleanObjectValue
convertToNumberObjectValue()
convertToNumberObjectValue(): NumberValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1266
Returns
Overrides
BaseValueObject
.convertToNumberObjectValue
cos()
cos(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:870
Returns
Overrides
cosh()
cosh(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:886
Returns
Overrides
count()
count(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:115
Returns
Inherited from
countA()
countA(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:119
Returns
Inherited from
countBlank()
countBlank(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:123
Returns
Inherited from
dispose()
dispose(): void
Defined in: submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:20
Returns
void
Inherited from
divided()
divided(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:539
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
dividedBy()
dividedBy(value): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:695
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Overrides
equalZero()
equalZero(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:495
Returns
boolean
exp()
exp(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1138
Returns
Overrides
floor()
floor(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1202
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
floorInverse()
floorInverse(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:442
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
getArrayValue()
getArrayValue(): Nullable<BaseValueObject>[][]
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:62
Returns
Nullable
<BaseValueObject
>[][]
Inherited from
getNegative()
getNegative(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:468
Returns
Overrides
getPattern()
getPattern(): string
Defined in: submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:24
Returns
string
Inherited from
getReciprocal()
getReciprocal(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:472
Returns
Overrides
getValue()
getValue(): number
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:456
Returns
number
Overrides
isArray()
isArray(): boolean
Defined in: submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:52
Returns
boolean
Inherited from
isAsyncArrayObject()
isAsyncArrayObject(): boolean
Defined in: submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:44
Returns
boolean
Inherited from
BaseValueObject
.isAsyncArrayObject
isAsyncObject()
isAsyncObject(): boolean
Defined in: submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:40
Returns
boolean
Inherited from
isBoolean()
isBoolean(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:87
Returns
boolean
Inherited from
isCube()
isCube(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:75
Returns
boolean
Inherited from
isEqual()
isEqual(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:185
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
isEqualType()
isEqualType(object): boolean
Defined in: submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:60
Parameters
Parameter | Type |
---|---|
object | ObjectClassType |
Returns
boolean
Inherited from
isError()
isError(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:95
Returns
boolean
Inherited from
isGreaterThan()
isGreaterThan(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:205
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
isGreaterThanOrEqual()
isGreaterThanOrEqual(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:193
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
BaseValueObject
.isGreaterThanOrEqual
isLambda()
isLambda(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:91
Returns
boolean
Inherited from
isLessThan()
isLessThan(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:201
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
isLessThanOrEqual()
isLessThanOrEqual(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:197
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
BaseValueObject
.isLessThanOrEqual
isNotEqual()
isNotEqual(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:189
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
isNull()
isNull(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:99
Returns
boolean
Inherited from
isNumber()
isNumber(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:464
Returns
boolean
Overrides
isReferenceObject()
isReferenceObject(): boolean
Defined in: submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:48
Returns
boolean
Inherited from
BaseValueObject
.isReferenceObject
isString()
isString(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:79
Returns
boolean
Inherited from
isValueObject()
isValueObject(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:40
Returns
boolean
Inherited from
log()
log(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1098
Returns
Overrides
log10()
log10(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1118
Returns
Overrides
map()
map(callbackFn): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:165
return every value in the array after the callback function, excluding the error value
Parameters
Parameter | Type |
---|---|
callbackFn | callbackMapFnType |
Returns
Inherited from
mapValue()
mapValue(callbackFn): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:175
return every value in the array after the callback function
Parameters
Parameter | Type |
---|---|
callbackFn | callbackMapFnType |
Returns
Inherited from
max()
max(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:107
Returns
Inherited from
mean()
mean(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:371
Calculate the mean of the entire array.
reference https://numpy.org/doc/stable/reference/generated/numpy.mean.html#numpy.mean
Returns
Inherited from
median()
median(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:382
Calculate the median of the entire array.
reference https://numpy.org/doc/stable/reference/generated/numpy.median.html
Returns
Inherited from
min()
min(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:111
Returns
Inherited from
minus()
minus(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:499
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
minusBy()
minusBy(value): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:653
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Overrides
mod()
mod(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:561
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
modInverse()
modInverse(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:239
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
multiply()
multiply(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:521
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
multiplyBy()
multiplyBy(value): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:674
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Overrides
plus()
plus(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:476
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
plusBy()
plusBy(value): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:632
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Overrides
pow()
pow(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:786
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
powInverse()
powInverse(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:280
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
round()
round(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1170
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
roundInverse()
roundInverse(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:432
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
setArrayValue()
setArrayValue(value): void
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:71
Parameters
Parameter | Type |
---|---|
value | BaseValueObject [][] |
Returns
void
Inherited from
setPattern()
setPattern(pattern): void
Defined in: submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:32
Only used in NumberValueObject
Parameters
Parameter | Type |
---|---|
pattern | string |
Returns
void
Inherited from
setValue()
setValue(value): void
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:460
Parameters
Parameter | Type |
---|---|
value | number |
Returns
void
Overrides
sin()
sin(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:934
Returns
Overrides
sinh()
sinh(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:950
Returns
Overrides
sqrt()
sqrt(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:838
Returns
Overrides
std()
std(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:402
Calculate the standard deviation of the entire array.
reference https://numpy.org/doc/stable/reference/generated/numpy.std.html
Returns
Inherited from
sum()
sum(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:103
Returns
Inherited from
tan()
tan(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:998
Returns
Overrides
tanh()
tanh(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1014
Returns
Overrides
toUnitRange()
toUnitRange(): {
range: {
endColumn: number;
endRow: number;
startColumn: number;
startRow: number;
};
sheetId: string;
unitId: string;
}
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:44
Returns
{
range: {
endColumn: number;
endRow: number;
startColumn: number;
startRow: number;
};
sheetId: string;
unitId: string;
}
Inherited from
var()
var(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:392
Calculate the variance of the entire array.
reference https://numpy.org/doc/stable/reference/generated/numpy.var.html
Returns
Inherited from
create()
static create(value, pattern): NumberValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:441
Parameters
Parameter | Type | Default value |
---|---|---|
value | number | undefined |
pattern | string | '' |