tencent cloud

Performance Testing Service

int64

PDF
Focus Mode
Font Size
Last updated: 2025-03-10 17:04:44
The int64 built-in function is used to implement int64 types.
int64(v: string): object

Parameters

Parameter
Type
Description
v
string
The string format of int64 type data.

Return

Type
Description
object
The returned objects, which have the following methods:
toString(), returns a string;
toJSON(), called when using JSON.stringify();

Samples

Use int64:
export default function () {
let a = {
k: int64("9223372036854775807")
}
// The toJSON() method is called when using JSON.stringify().
// {"k":"9223372036854775807"}
console.log(JSON.stringify(a));
// 9223372036854775807
console.log(a.k.toString());
}


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback