Biferno 1.7 Tabasoft.it

Application: ItaliaScuola Back-Office3
Reference
Admin | Edit | Reference | Cache | Logs
Click on a class name to see the description of that particular class:

Predefined Classes

ansi
array
biferno
boolean
cacheItem
char
classInfo
client
collection
curApp
curFile
curScript
db
double
error
file
folder
header
httpPage
imageUtils
int
long
memberInfo
multipart
object
ref
regexp
request
search
serverInfo
smtp
stackItem
string
time
unix
unsigned
 

Application Classes

Banner
BrowserBar
Ctrl_Form
FCKeditor
Form
GridChartGraph
Histogram
LocalDate
Result
condb
cookie
folderExt
headerExt
httpExt
mysqlFulltext
objHtml
requestExt
tableExport
utils
 

Functions

Functions

curScript

Method:

SetNumFormat

static void SetNumFormat(char thousSep, char decimSep)

Specify decimal and thousand separators for current script

Description:

The SetNumFormat static method allows to specify for a single current script within an application the decimal and thousand separators to be used during string conversion, temporarily replacing the application defaults defined in the “Biferno.config.bfr” file (THOUSAND_SEP and DECIMAL_SEP).

The following example clarifies its use:

a = 1234.567 // a is of classe double
b = a.ToString() //b is "1234,57" – notice rounding
c = a.ToString(true) //c is "1.234,57"
d = a.ToString(true, 1) //d is "1.234,6"
int.SetFormat(",",".")
e = a.ToString(true, 5) //e is "1,234.567"
f = a.ToString(true, 5, false) //f is "1,234.56700"

Parameters:
thousSep

the new thousand separator character

decimSep

the new decimal separator character

See also:

GetNumFormat

Implementation:
C
 

Return to the curScript class