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

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.

主站蜘蛛池模板: 宁都县| 安岳县| 龙陵县| 唐河县| 伊宁市| 克什克腾旗| 佛教| 通许县| 乌鲁木齐市| 周口市| 高州市| 彩票| 宁津县| 广昌县| 确山县| 集贤县| 武冈市| 英德市| 周口市| 湖南省| 咸丰县| 开平市| 义马市| 乌兰察布市| 太仆寺旗| 磴口县| 吉木乃县| 南木林县| 吉安市| 星座| 砀山县| 关岭| 会理县| 嘉祥县| 阿勒泰市| 大埔县| 桦南县| 象州县| 黑山县| 仪陇县| 通辽市|