RosettaCodeData/Task/Literals-Integer/00DESCRIPTION

16 lines
533 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
Some programming languages have ways of expressing integer literals in bases other than the normal base ten.
2016-12-05 22:15:40 +01:00
;Task:
2013-04-10 21:29:02 -07:00
Show how integer literals can be expressed in as many bases as your language allows.
2016-12-05 22:15:40 +01:00
Note:   this should '''not''' involve the calling of any functions/methods, but should be interpreted by the compiler or interpreter as an integer written to a given base.
2013-04-10 21:29:02 -07:00
Also show any other ways of expressing literals, e.g. for different types of integers.
2016-12-05 22:15:40 +01:00
;Related task:
*   [[Literals/Floating point]]
<br><br>