Store result of 2 raised to the 3rd power in variable B: B = 2^ 3 Store result of 10.0 divided by 3.2 in variable D: D = 10.0/ 3.2 If ptr is a valid pointer (created via the PTR_NEW function), then *ptr is the value held by the heap variable that ptr points to. Store the product of 2 and 5 in variable C: C = 2 * 5 Note: The decrement operator supports both pre- and post-fix syntax. Subtracts one from the operand: A = 3 A- PRINT, A Store the value of 5 subtracted from 9 in C: C = 9 - 5 Note: The increment operator supports both pre- and post-fix syntax. list3 = list1 + list2Īdds one to the operand: A = 3 A++ PRINT, A Store the string value of “John Doe” in B: B = 'John' + ' ' + 'Doe'Ĭombines two lists to make a new one. Note: If one or both of the operands are objects, the operator may be overloaded. Note: Also see Assignment and Compound Assignment for information on = and op= and Other Operators for information on the, ( ), and ?: operators. IDL mathematical operators are described in the following table.
0 Comments
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |