<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                [TOC] # 效果演示 - 示例 ![](https://img.kancloud.cn/e0/3d/e03db5dcb880fe0e6566f70cc71cd4cf_1475x894.png) - 效果 ![](https://img.kancloud.cn/4f/cc/4fcc19faf5022de0a545c727ebbe41fe_1592x905.png) # 數學函數 ## =rand() 1.函數說明: 取得0-1.0之間的一個隨機數 2. 語法:rand() 3. 參數說明: 無 4. 返回值: \[0, 1.0)之間的一個隨機數,浮點型 5. 示例: 例1:rand() 獲得\[0, 1.0)之間的一個隨機數 例2:rand()\*100 獲得\[0, 100)之間的一個隨機浮點數 ## =round() 1. 函數說明: 對數據在指定位置上進行截取,剩余部分四舍五入 2. 語法: round(numberExp, {nExp}) 3. 參數說明: numberExp 需要進行截取的數據 nExp 整數,用于指定需要進行截取的位置,>0:從小數點往右位移nExp個位數, <0:從小數點往左nExp個位數 =0:表示當前小數點的位置 4. 返回值: 數值型 5. 示例: 例1:=round(3451251.274,0) 返回:3451251.0 例2:=round(3451251.274,-1) 返回:3451250.0 例3:=round(3451251.274,-2) 返回:3451300.0 例4:=round(3451251.274,1) 返回:3451251.3 例5:=round(3451251.274,2) 返回:3451251.27 ## =abs() 1. 函數說明: 計算參數的絕對值 2. 語法: abs(numberExp) 3. 參數說明: numberExp 待計算絕對值的數據 4. 返回值: 數值型 5. 示例: 例1:abs(-3245.54) 返回:3245.54 例2:abs(-987) 返回:987 ## =floor() 1. 函數說明: 對數據在指定位置向下進行截取,剩余部分只要有值全舍去 2. 語法: floor(numberExp, {nExp}) 3. 參數說明: numberExp 需要進行截取的數據 nExp 整數,用于指定需要進行截取的位置,>0:從小數點往右位移nExp個位數, <0:從小數點往左移nExp個位數 =0:表示當前小數點的位置 4. 返回值: 數值型 5. 示例: 例1:=floor(3451231.234,0) 返回:3451231.0 例2:=floor(3451231.234,-1) 返回:3451230.0 例3:=floor(3451231.234,-2) 返回:3451200.0 例4:=floor(3451231.234,1) 返回:3451231.2 例5:=floor(3451231.234,2) 返回:3451231.23 ## =ceil() 1. 函數說明: 對數據在指定位置向上進行截取,剩余部分只要有值就進位。 2. 語法: ceil(numberExp, {nExp}) 3. 參數說明: numberExp 需要進行截取的數據 nExp 整數,用于指定需要進行截取的位置,>0:從小數點往右位移nExp個位數, <0:從小數點往左移nExp個位數 =0:表示當前小數點的位置 4. 返回值: 數值型 5. 示例: 例1:=ceil(3450001.004,0) 返回:3450002.0 例2:=ceil(3450001.004,-1) 返回:3450010.0 例3:=ceil(3450001.004,-2) 返回:3450100.0 例4:=ceil(3450001.004,1) 返回:3450001.1 例5:=ceil(3450001.004,2) 返回:3450001.01 ## =trunc() 1. 函數說明: 對數據取整。 2. 語法: trunc(numberExp}) 3. 參數說明: numberExp 小數 4. 返回值: 數值型 5. 示例: 例1:=trunc(11.11) 返回:11 例2:=trunc(-11.99)返回:-11 -------------------------------------------------------------- **備注:除了固定值作為參數外,支持配置數據集表達式** 錯誤用法: `=round("#{db.salary}", 2)` 正確用法(不要帶引號): `=round(#{db.salary}, 2)` `=floor(#{db.salary}, 2)`
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看