uCalc API Version: 5.7.0-preview.1 Released: 7/30/2026

Warning

uCalc API Preview Release Notice:This preview documentation describes the intended behavior of the API. It is not fully accurate or complete.The current preview build contains incomplete features, unoptimized performance, and is subject to breaking changes.Use of the preview version in your production code is not recommended.

Compare

Method

Product: 

Class: 

Compares two strings

Syntax

Compare(string, int, int, int)

Parameters

OtherString
string
The other string to compare with
IndexA
int
(Default = 0)
Starting point of first string
IndexB
int
(Default = 0)
Starting point of next string
Length
int
(Default = -1)
Length

Return

Comparison

Returns bigger than, equal, or less than (Comparison enum)

Remarks

Compares two strings

Examples