@univerjs/engine-formula v0.5.0-beta.1 • Docs
Class: NumberValueObject
Extends
Constructors
new NumberValueObject()
new NumberValueObject(rawValue): NumberValueObject
Parameters
Parameter | Type |
---|---|
rawValue | number |
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:447
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
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1151
acos()
acos(): BaseValueObject
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:899
acosh()
acosh(): BaseValueObject
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:915
asin()
asin(): BaseValueObject
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:963
asinh()
asinh(): BaseValueObject
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:979
atan()
atan(): BaseValueObject
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1027
atan2()
atan2(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1043
atan2Inverse()
atan2Inverse(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:355
atanh()
atanh(): BaseValueObject
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1079
cbrt()
cbrt(): BaseValueObject
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:851
ceil()
ceil(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1231
ceilInverse()
ceilInverse(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:452
compare()
compare(valueObject, operator): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
operator | compareToken |
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:622
compareBy()
compareBy(value, operator): BaseValueObject
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
operator | compareToken |
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:717
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
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:249
concatenateBack()
concatenateBack(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
BaseValueObject
.concatenateBack
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:615
concatenateFront()
concatenateFront(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
BaseValueObject
.concatenateFront
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:608
convertToBooleanObjectValue()
convertToBooleanObjectValue(): BooleanValueObject
Returns
Overrides
BaseValueObject
.convertToBooleanObjectValue
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1267
convertToNumberObjectValue()
convertToNumberObjectValue(): NumberValueObject
Returns
Overrides
BaseValueObject
.convertToNumberObjectValue
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1263
cos()
cos(): BaseValueObject
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:867
cosh()
cosh(): BaseValueObject
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:883
count()
count(): BaseValueObject
Returns
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:115
countA()
countA(): BaseValueObject
Returns
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:119
countBlank()
countBlank(): BaseValueObject
Returns
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:123
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:20
divided()
divided(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:536
dividedBy()
dividedBy(value): BaseValueObject
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:692
equalZero()
equalZero(): boolean
Returns
boolean
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:492
exp()
exp(): BaseValueObject
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1135
floor()
floor(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1199
floorInverse()
floorInverse(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:442
getArrayValue()
getArrayValue(): Nullable<BaseValueObject>[][]
Returns
Nullable
<BaseValueObject
>[][]
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:62
getNegative()
getNegative(): BaseValueObject
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:465
getPattern()
getPattern(): string
Returns
string
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:24
getReciprocal()
getReciprocal(): BaseValueObject
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:469
getValue()
getValue(): number
Returns
number
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:453
isArray()
isArray(): boolean
Returns
boolean
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:52
isAsyncArrayObject()
isAsyncArrayObject(): boolean
Returns
boolean
Inherited from
BaseValueObject
.isAsyncArrayObject
Defined in
submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:44
isAsyncObject()
isAsyncObject(): boolean
Returns
boolean
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:40
isBoolean()
isBoolean(): boolean
Returns
boolean
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:87
isCube()
isCube(): boolean
Returns
boolean
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:75
isEqual()
isEqual(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:185
isEqualType()
isEqualType(object): boolean
Parameters
Parameter | Type |
---|---|
object | ObjectClassType |
Returns
boolean
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:60
isError()
isError(): boolean
Returns
boolean
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:95
isGreaterThan()
isGreaterThan(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:205
isGreaterThanOrEqual()
isGreaterThanOrEqual(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
BaseValueObject
.isGreaterThanOrEqual
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:193
isLambda()
isLambda(): boolean
Returns
boolean
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:91
isLessThan()
isLessThan(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:201
isLessThanOrEqual()
isLessThanOrEqual(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
BaseValueObject
.isLessThanOrEqual
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:197
isNotEqual()
isNotEqual(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:189
isNull()
isNull(): boolean
Returns
boolean
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:99
isNumber()
isNumber(): boolean
Returns
boolean
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:461
isReferenceObject()
isReferenceObject(): boolean
Returns
boolean
Inherited from
BaseValueObject
.isReferenceObject
Defined in
submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:48
isString()
isString(): boolean
Returns
boolean
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:79
isValueObject()
isValueObject(): boolean
Returns
boolean
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:40
log()
log(): BaseValueObject
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1095
log10()
log10(): BaseValueObject
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1115
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
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:165
mapValue()
mapValue(callbackFn): BaseValueObject
return every value in the array after the callback function
Parameters
Parameter | Type |
---|---|
callbackFn | callbackMapFnType |
Returns
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:175
max()
max(): BaseValueObject
Returns
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:107
mean()
mean(): BaseValueObject
Calculate the mean of the entire array.
reference https://numpy.org/doc/stable/reference/generated/numpy.mean.html#numpy.mean
Returns
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:371
median()
median(): BaseValueObject
Calculate the median of the entire array.
reference https://numpy.org/doc/stable/reference/generated/numpy.median.html
Returns
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:382
min()
min(): BaseValueObject
Returns
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:111
minus()
minus(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:496
minusBy()
minusBy(value): BaseValueObject
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:650
mod()
mod(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:558
modInverse()
modInverse(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:239
multiply()
multiply(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:518
multiplyBy()
multiplyBy(value): BaseValueObject
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:671
plus()
plus(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:473
plusBy()
plusBy(value): BaseValueObject
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:629
pow()
pow(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:783
powInverse()
powInverse(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:280
round()
round(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1167
roundInverse()
roundInverse(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:432
setArrayValue()
setArrayValue(value): void
Parameters
Parameter | Type |
---|---|
value | BaseValueObject [][] |
Returns
void
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:71
setPattern()
setPattern(pattern): void
Only used in NumberValueObject
Parameters
Parameter | Type |
---|---|
pattern | string |
Returns
void
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:32
setValue()
setValue(value): void
Parameters
Parameter | Type |
---|---|
value | number |
Returns
void
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:457
sin()
sin(): BaseValueObject
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:931
sinh()
sinh(): BaseValueObject
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:947
sqrt()
sqrt(): BaseValueObject
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:835
std()
std(): BaseValueObject
Calculate the standard deviation of the entire array.
reference https://numpy.org/doc/stable/reference/generated/numpy.std.html
Returns
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:402
sum()
sum(): BaseValueObject
Returns
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:103
tan()
tan(): BaseValueObject
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:995
tanh()
tanh(): BaseValueObject
Returns
Overrides
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:1011
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 ; } | - | submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:46 |
range.endColumn | number | -1 | submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:50 |
range.endRow | number | -1 | submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:49 |
range.startColumn | number | -1 | submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:47 |
range.startRow | number | -1 | submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:48 |
sheetId | string | ” | submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:52 |
unitId | string | ” | submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:53 |
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:44
var()
var(): BaseValueObject
Calculate the variance of the entire array.
reference https://numpy.org/doc/stable/reference/generated/numpy.var.html
Returns
Inherited from
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:392
create()
static create(value, pattern): NumberValueObject
Parameters
Parameter | Type | Default value |
---|---|---|
value | number | undefined |
pattern | string | '' |
Returns
Defined in
submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:438