Home > @josh-brown/vector > ScalarOperations > fromNumber
Returns an instance of the scalar type which most accurately corresponds to the value of num
Signature:
abstract fromNumber(num: number): S;
Parameter | Type | Description |
---|---|---|
num | number |
Returns:
S
The scalar