cmod

 

 

Overview

The cmod function divides two Characters and returns the remainder expressed as a Character. The cmod function does not perform type checking or type conversion on the operands. Both operands are treated as integers during the mod operation.

Usage

The cmod built-in function is used to determine if a Character will divide evenly into another Character (the remainder will be zero in this case).

 

Syntax


Expression: (cmod char1 char2 ... )

Arguments Name Type Description
Argument:char1Character The Character to be divided
Argument:char2Character The Character divisors.

Returns:

The remainder after division. The result is expressed as a Character.



 

Examples

Here are a number of links to Lambda coding examples which contain this instruction in various use cases.

 

Argument Types

Here are the links to the data types of the function arguments.

Character Integer

Here are also a number of links to functions having arguments with any of these data types.

++ += + /=
/ * -- -=
- addMethod addi avg
badd balance bdiv binaryInsert
binaryNand binaryNor binaryNot binaryNxor
binarySearch bitwiseAnd bitwiseNand bitwiseNor
bitwiseNot bitwiseNxor bitwiseOr bitwiseShiftLeft
bitwiseShiftRight bitwiseXor bmod bmul
boolean cadd ccompareEQ ccompareGE
ccompareGT ccompareLE ccompareLT ccompareNE
cdiv char character cmod
cmul code compareEQ compareGE
compareGT compareLE compareLT compareNE
compare cons count csub
day days360 debugDetective deleteRows
delete display divi downcase
evalInSyncLocalContext exit exportCsv exportSbf
exportTab fact fdisplay fileClose
fileCopy fileDisplay fileErase fileOpen
fileReadRecord fileRead fileResize fileSeek
fileWrite filewriteln findBlock find
floor fraction freeBlock gcd
getRecursionCount hashString hour iadd
icompareEQ icompareGE icompareGT icompareLE
icompareLT icompareNE idiv imod
importCsv importSbf importTab imul
insertRows insert inside inspect
integer isAtom isBitVector isBoolean
isBound isByteVector isCharAlphabetic isCharAlphanumeric
isCharLowercase isCharName isCharNumeric isCharUppercase
isCharWhitespace isChar isCharacter isComplex
isDate isDictionary isDirectory isEqual
isError isEven isFloatVector isIdentical
isInside isIntegerVector isInteger isLambda
isMatrix isMember isMoney isNumberMatrix
isNumberVector isNumber isObjectVector isObject
isPair isPcodeVector isString isStructure
isSymbol isText isType isVector
isub kurtosis lcm left
length list macroReplace makeQuotedList
max median member mid
min minute mod modi
money month muli new
number objectToMatrix objectToNumMatrix objectToNumVector
pair parent parse preAllocateFixedMemoryBlocks
product qt random randomize
range rank refAttributes refValues
ref remove replace rept
resize right round saveObject
second setAttributes setBlock setCar
setCdr setLastCdr setq sizeof
skew sort sql sqrt
srandom stdev stdevp stringToBVector
stringToVector string subi substitute
substring sum sumsqr svmRegression
system text time type
uniqueInsert upcase var varp
vectorBinaryInnerProduct vectorBipolarInnerProduct vectorCosineInnerProduct vectorCubeInnerProduct
vectorDelete vectorExpInnerProduct vectorFill vectorInnerProduct
vectorLogInnerProduct vectorQuartInnerProduct vectorQuintInnerProduct vectorSigmoidInnerProduct
vectorSineInnerProduct vectorSquareInnerProduct vectorTanInnerProduct vectorTanhInnerProduct
writelg writeln year

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE