2022.2

Table Of Contents
Float
Floatsaresigned,numeric,floating-pointnumberswhosevaluehas15-16significantdigits.Floatsare
routinelyusedforcalculations.NotethatFloatvaluescanonlyhaveupto3decimals.Theyareinher-
entlyimprecise:theiraccuracyvariesaccordingtothenumberofsignificantdigitsbeingrequested.
TheCurrencydatatypecanhaveupto4decimals;see"Currency"onpage277.
Defining Float values
l
Preprocessor:
l
IntheStep propertiespane,underProperties,addorselectafield.
l
SpecifytheTypeasFloatandsetadefaultvalueasanumberwithdecimalpoints,fol-
lowedbyasemicolon;forexample546513.879;.
l
Extraction:ThefieldvaluewillbeextractedandtreatedasaFloat.
l
IntheData Model,selectafield.
l
OntheStep propertiespane,underField DefinitionsettheTypetoFloat.
l
JavaScript Expression:SetthedesiredvaluetoanyFloatvalue.
Example:record.fields["PreciseTaxSubtotal"] = 27.134;
Building Float values
FloatvaluescanbetheresultofdirectattributionormathematicaloperationsjustlikeIntegervalues
(see"Integer"below).
HTMLString
HTMLStringscontaintextualdatathatincludesHTMLmarkup.TheyareessentiallythesameasString
valuesexceptincaseswheretheHTMLmarkupcanbeinterpreted.
Example: AssumethatafieldhasthevalueHe said <b>WOW!</b>.
IfthedatatypeisStringandthevalueisplacedinatemplate,itwilldisplayexactlyas"Hesaid
<b>WOW!</b>"(withoutthequotes).
IfthedatatypeisHTMLString,itwilldisplayas"HesaidWOW!"(again,withoutthequotes).
Consideringthisistheonlydifference,formoreinformationonhowtocreateanduseHTMLStringval-
ues,see"String"onpage283.
Integer
Integersaresigned,numeric,whole64bitnumberswhosevaluesrangefrom-(2^63)to
(2^63).Integersarethenumeralswiththehighestprecision(andthefastestprocessingspeed)ofall,
sincetheyareneverrounded.
Page 281