REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: +

+  value1  value2

Returns the result of adding two values.

Arguments:

value1 [scalar! date!]

value2

See also:

-   add   subtract  

Description

When adding values of different datatypes, the values must be compatible.

print 123 + 1
124
print 12:00 + 11:00
23:00
print 31-Dec-1999 + 1
1-Jan-2000
print 1.2.3.4 + 4.3.2.1
5.5.5.5


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin