Commit c1035cb9 authored by Milo Yip's avatar Milo Yip

Update tutorial.md

parent cbc2c46b
...@@ -188,13 +188,13 @@ Type | Description ...@@ -188,13 +188,13 @@ Type | Description
When querying a number, you can check whether the number can be obtained as target type: When querying a number, you can check whether the number can be obtained as target type:
Checking | Obtaining Checking | Obtaining
-------------|-------------- ------------------|---------------------
`IsNumber()` | N/A `bool IsNumber()` | N/A
`IsInt()` | `GetInt()` `bool IsInt()` | `int GetInt()`
`IsUint()` | `GetUint()` `bool IsUint()` | `unsigned GetUint()`
`IsInt64()` | `GetInt64()` `bool IsInt64()` | `uint64_t GetInt64()`
`IsUint64()` | `GetUint()` `bool IsUint64()` | `int64_t GetUint()`
`IsDouble()` | `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`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment