| 101 | |
| 102 | === Specific (initial) values of variables === #code-good-bad-limits |
| 103 | |
| 104 | In general __all__ variables __always__ have to be initialized (we don't care about the extra tic, even if operating system guarantees zero as default memory value). |
| 105 | |
| 106 | If they have to be set to some very small or very big value, use std::numeric_limits |
| 107 | {{{ |
| 108 | double smalldouble = std::numeric_limits<double>::min(); |
| 109 | double largedouble = std::numeric_limits<double>::max(); |
| 110 | }}} |
| 111 | Also remember that there are also ::infinity() and alikes to set an illegal value which can be checked. |