- 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
推薦閱讀
- Go Web編程
- Microsoft Exchange Server PowerShell Cookbook(Third Edition)
- JavaFX Essentials
- Bootstrap Essentials
- Corona SDK Mobile Game Development:Beginner's Guide(Second Edition)
- Mastering Business Intelligence with MicroStrategy
- 大話Java:程序設(shè)計從入門到精通
- 運維前線:一線運維專家的運維方法、技巧與實踐
- Arduino可穿戴設(shè)備開發(fā)
- Java EE 7 Development with WildFly
- MySQL從入門到精通
- MATLAB計算機視覺實戰(zhàn)
- Qt編程快速入門
- 語義Web編程
- 計算機視覺增強現(xiàn)實應(yīng)用平臺開發(fā)