## xs:integer Server Expression

A server expression that returns a value of (or implicitly castable to) the xs:integer server type. For all server types, see the Server Expression Type Hierarchy.

### Cast With

Server Return Type | Server Function | Java Doc
--- | --- | ---
xs:integer? | xs:integer(item arg1?) | java

### Parameter Of

Server Return Type | Server Function | Java Doc | Server Doc
--- | --- | --- | ---
cts:reference | cts:geospatial-region-path-reference(xs:string path-expression, xs:string options*, map:map namespaces?, xs:integer geohash-precision?, xs:string units*, xs:string invalid-values*) | java | server
xs:string | fn:codepoints-to-string(xs:integer arg*) | java | server
item* | fn:insert-before(item target*, xs:integer position, item inserts*) | java | server
item* | fn:remove(item target*, xs:integer position) | java | server
xs:numeric? | fn:round-half-to-even(xs:numeric arg?, xs:integer precision) | java | server
xs:string* | geo:geohash-encode(cts:region region, xs:integer geohash-precision?, xs:string options*) | java | server
xs:double* | geo:geohash-precision-dimensions(xs:integer precision) | java | server
xs:double | math:ldexp(xs:double y, xs:integer i) | java | server
xs:numeric? | math:trunc(xs:numeric arg?, xs:integer n) | java | server
xs:string | xdmp:format-number(xs:numeric value*, xs:string picture?, xs:string language?, xs:string letter-value?, xs:string ordchar?, xs:string zero-padding?, xs:string grouping-separator?, xs:integer grouping-size?) | java | server
xs:string | xdmp:integer-to-hex(xs:integer val) | java | server
xs:string | xdmp:integer-to-octal(xs:integer val) | java | server

### Return Value Of

Server Return Type | Server Function | Java Doc | Server Doc
--- | --- | --- | ---
xs:integer? | fn:compare(xs:string comparand1?, xs:string comparand2?, xs:string collation) | java | server
xs:integer | fn:count(item arg*, xs:double maximum?) | java | server
xs:integer? | fn:day-from-date(xs:date arg?) | java | server
xs:integer? | fn:day-from-dateTime(xs:dateTime arg?) | java | server
xs:integer? | fn:days-from-duration(xs:duration arg?) | java | server
xs:integer? | fn:hours-from-dateTime(xs:dateTime arg?) | java | server
xs:integer? | fn:hours-from-duration(xs:duration arg?) | java | server
xs:integer? | fn:hours-from-time(xs:time arg?) | java | server
xs:integer* | fn:index-of(xs:anyAtomicType seqParam*, xs:anyAtomicType srchParam, xs:string collationLiteral) | java | server
xs:integer? | fn:minutes-from-dateTime(xs:dateTime arg?) | java | server
xs:integer? | fn:minutes-from-duration(xs:duration arg?) | java | server
xs:integer? | fn:minutes-from-time(xs:time arg?) | java | server
xs:integer? | fn:month-from-date(xs:date arg?) | java | server
xs:integer? | fn:month-from-dateTime(xs:dateTime arg?) | java | server
xs:integer? | fn:months-from-duration(xs:duration arg?) | java | server
xs:integer? | fn:string-length(xs:string sourceString?) | java | server
xs:integer* | fn:string-to-codepoints(xs:string arg?) | java | server
xs:integer? | fn:year-from-date(xs:date arg?) | java | server
xs:integer? | fn:year-from-dateTime(xs:dateTime arg?) | java | server
xs:integer? | fn:years-from-duration(xs:duration arg?) | java | server
xs:integer | geo:count-distinct-vertices(cts:region region, xs:string options*) | java | server
xs:integer | geo:count-vertices(cts:region region) | java | server
xs:integer? | math:rank(xs:anyAtomicType arg1*, xs:anyAtomicType arg2, xs:string options*) | java | server
xs:integer | spell:levenshtein-distance(xs:string str1, xs:string str2) | java | server
xs:integer? | sql:bit-length(xs:string str?) | java | server
xs:integer? | sql:datediff(xs:string datepart?, item startdate?, item enddate?) | java | server
xs:integer? | sql:datepart(xs:string datepart, item date) | java | server
xs:integer? | sql:day(item arg?) | java | server
xs:integer? | sql:hours(item arg?) | java | server
xs:integer? | sql:minutes(item arg?) | java | server
xs:integer? | sql:month(item arg?) | java | server
xs:integer? | sql:octet-length(xs:string x?) | java | server
xs:integer? | sql:quarter(item arg?) | java | server
xs:integer? | sql:strpos(xs:string target?, xs:string test?, xs:string collation?) | java | server
xs:integer? | sql:timestampdiff(xs:string dateTimeType?, item timestamp1?, item timestamp2?) | java | server
xs:integer? | sql:week(item arg?) | java | server
xs:integer? | sql:weekday(item arg1?) | java
xs:integer? | sql:year(item arg?) | java | server
xs:integer? | sql:yearday(item arg?) | java | server
xs:integer | xdmp:hex-to-integer(xs:string hex) | java | server
xs:integer | xdmp:octal-to-integer(xs:string octal) | java | server
xs:integer? | xdmp:position(xs:string test?, xs:string target?, xs:string collation?) | java | server
xs:integer? | xdmp:quarter-from-date(xs:date arg?) | java | server
xs:integer? | xdmp:weekday-from-date(xs:date arg?) | java | server
xs:integer? | xdmp:week-from-date(xs:date arg?) | java | server
xs:integer? | xdmp:yearday-from-date(xs:date arg?) | java | server