| Crates.io | i2f |
| lib.rs | i2f |
| version | 0.1.0 |
| created_at | 2023-10-15 02:45:41.773647+00 |
| updated_at | 2023-10-15 02:45:41.773647+00 |
| description | Macros that converts number literals into int or float literals. |
| homepage | |
| repository | https://github.com/mintlu8/identconv |
| max_upload_size | |
| id | 1003438 |
| size | 10,056 |
Macros that converts number literals into int or float literals.
In addition to literals, we also accept negative literals -literal.
i2f!(90) //90.0
i2f!(-462) //-462.0
i2f!(3.14) //3.14
f2i!(3), //3
f2i!(3.0), //3
trunc!(3.14), //3
f2i!(-12.0), //-12