source:
CIVL/mods/dev.civl.com/examples/languageFeatures/castReal2Int.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 83 bytes | |
| Rev | Line | |
|---|---|---|
| [f031e19] | 1 | int main() { |
| 2 | double x = 3.14; | |
| 3 | int i = (int)x; | |
| 4 | ||
| 5 | $assert(i == 3); | |
| 6 | return 0; | |
| 7 | } |
Note:
See TracBrowser
for help on using the repository browser.
