RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
VarHlpr.VariantMod2 Function

Returns the remainder on division of two Variants.

Pascal
function VariantMod2(const V1: Variant; const V2: Variant): Variant;
C++
Variant VariantMod2(const Variant V1, const Variant V2);

VariantMod2 calculates the remainder on division of V1 by V2 and returns a new Variant holding the result.  

The input values must be convertible to integer numerical types; otherwise an EVariantTypeCastError exception will be raised. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!