官术网_书友最值得收藏!

Data structures and types

A type is a set of values. More concretely, 42 has the int type because it's a value that's contained in the set of integers. A float is a number that includes a decimal point, that is, 42. and 42.0. In Reason, integers and floating point numbers have separate operators:

/* + for ints */
40 + 2;

/* +. for floats */
40. +. 2.;

The same is true for -., -, *., *, /., and /.

Reason uses double quotes for the string type and single quotes for the char type.

主站蜘蛛池模板: 大埔县| 绵竹市| 博白县| 台山市| 米林县| 浠水县| 绍兴市| 盐城市| 平舆县| 丰顺县| 南乐县| 上思县| 资兴市| 卫辉市| 乐亭县| 浦县| 河东区| 万宁市| 新建县| 镇江市| 荥经县| 龙游县| 牟定县| 太谷县| 铜梁县| 绍兴市| 崇左市| 广宗县| 耒阳市| 宁德市| 胶州市| 常德市| 乡城县| 内江市| 玉田县| 彝良县| 延边| 宜兴市| 武城县| 新津县| 乳山市|