Update tutorial.md
This commit is contained in:
parent
c1035cb970
commit
a74c5da9da
@ -190,10 +190,10 @@ When querying a number, you can check whether the number can be obtained as targ
|
|||||||
Checking | Obtaining
|
Checking | Obtaining
|
||||||
------------------|---------------------
|
------------------|---------------------
|
||||||
`bool IsNumber()` | N/A
|
`bool IsNumber()` | N/A
|
||||||
`bool IsInt()` | `int GetInt()`
|
|
||||||
`bool IsUint()` | `unsigned GetUint()`
|
`bool IsUint()` | `unsigned GetUint()`
|
||||||
`bool IsInt64()` | `uint64_t GetInt64()`
|
`bool IsInt()` | `int GetInt()`
|
||||||
`bool IsUint64()` | `int64_t GetUint()`
|
`bool IsUint64()` | `uint64_t GetUint()`
|
||||||
|
`bool IsInt64()` | `int64_t GetInt64()`
|
||||||
`bool IsDouble()` | `double GetDouble()`
|
`bool IsDouble()` | `double GetDouble()`
|
||||||
|
|
||||||
Note that, an integer value may be obtained in various ways without conversion. For example, A value `x` containing `123` will make `x.IsInt() == x.IsUint() == x.Int64() == x.Uint64() == ture`. But a value `y` containing `-3000000000` will only makes `x.int64() == true`.
|
Note that, an integer value may be obtained in various ways without conversion. For example, A value `x` containing `123` will make `x.IsInt() == x.IsUint() == x.Int64() == x.Uint64() == ture`. But a value `y` containing `-3000000000` will only makes `x.int64() == true`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user