- 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
推薦閱讀
- 摩登創客:與智能手機和平板電腦共舞
- Web Scraping with Python
- Python自動化運維快速入門
- Android Application Development Cookbook(Second Edition)
- Learning Python Design Patterns(Second Edition)
- Julia Cookbook
- Oracle Exadata專家手冊
- SQL Server與JSP動態網站開發
- Linux Shell核心編程指南
- Getting Started with React Native
- C語言程序設計簡明教程:Qt實戰
- MySQL 8從零開始學(視頻教學版)
- 從零開始:C語言快速入門教程
- XML程序設計(第二版)
- Kohana 3.0 Beginner's Guide