Literals/Integer: Difference between revisions

Content deleted Content added
added javascript
added scheme, common lisp
Line 33:
standard)
 
=={{header|Common Lisp}}==
 
(This is an interactive common lisp session)
 
binary: #b, octal: #o, hexadecimal: #x, any base from 2 to 36: #Nr
<pre>
>(= 727 #b1011010111)
T
>(= 727 #o1327)
T
>(= 727 #x2d7)
T
>(= 727 #20r1g7)
T
</pre>
 
=={{header|Fortran}}==
Line 143 ⟶ 158:
irb(main):003:0> 727 == 01327
=> true
</pre>
 
=={{header|Scheme}}==
 
(This is an interactive scheme session)
 
binary: #b, octal: #o, decimal: #d (optional obviously), hex: #x
<pre>
> (= 727 #b1011010111)
#t
> (= 727 #o1327)
#t
> (= 727 #d727)
#t
> (= 727 #x2d7)
#t
</pre>