SP.RegionalSettings.negNumberMode property (sp.js)

Gets the negative number mode that is used for displaying negative numbers in calculated fields based on the locale of the server.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.RegionalSettings.get_negNumberMode ()

Return value

An unsigned 32-bit integer that indicates the negative number mode.

REST resource endpoint

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/RegionalSettings/negNumberMode

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/RegionalSettings/negNumberMode

GET syntax

GET http://<sitecollection>/<site>/_api/web/RegionalSettings/negNumberMode

Remarks

The NegNumberMode property contains one of the values listed in the following table, depending on the regional settings for the site.

Value

Description

Example

0

Parentheses contain the number.

(1.1)

1

Placed before the number.

-1.1

2

Placed before the number with extra space.

- 1.1

3

Placed after the number.

1.1-

4

Placed after the number with extra space.

1.1 -