- Perl 6 Deep Dive
- Andrew Shitov
- 43字
- 2021-07-03 00:05:52
Methods pred and succ
These two methods work similar to how they work on an integer value. The integer part is returned, incremented or decremented, while the floating part is unchanged, as shown as follows:
say 3.14.pred; # 2.14
say 3.14.succ; # 4.14
推薦閱讀
- 自己動手寫搜索引擎
- 數字媒體應用教程
- The Modern C++ Challenge
- Mastering OpenCV Android Application Programming
- HTML5+CSS3網站設計教程
- Python機器學習實戰
- 琢石成器:Windows環境下32位匯編語言程序設計
- Jenkins Continuous Integration Cookbook(Second Edition)
- SQL 經典實例
- Mastering Web Application Development with AngularJS
- JavaScript應用開發實踐指南
- Regression Analysis with Python
- 算法圖解
- Learning Shiny
- 軟件測試技術