Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff ()
Created: 10/03/2017
Components: Language, Member Functions
Versions: 2016
Failure Type: Others
Found In Build/Fixed In Build: / 308164(Public Beta)
Priority/Frequency: Normal /
Locale/System: /
Vote Count: 5
This ER is for: Numeric member functions
Numeric data type needs member functions. Suggestions:
//Number functions
{code:java}
someVar.abs()
someVar.aCos()
someVar.aSin()
someVar.atn()
someVar.bitAnd(number2)
someVar.bitMaskClear(start, length)
someVar.bitMaskRead(start, length)
someVar.bitMaskSet(mask, start, length)
someVar.bitNot()
someVar.bitOr(number2)
someVar.bitSHLN(count)
someVar.bitSHRN(count)
someVar.bitXor(number2)
someVar.ceiling()
someVar.cos()
someVar.decrementValue()
someVar.exp()
someVar.fix()
someVar.floor()
someVar.formatBaseN(radix)
someVar.incrementValue()
someVar.int()//DO NOT ADD. Adobe recommends Floor, instead of Int, in new applications.
someVar.log()
someVar.log10()
someVar.max(number2)
someVar.min(number2)
someVar.pi()//Doesn't make sense as a member function.. does it?
someVar.precisionEvaluate()//Useful for creating an instance of BigDecimal*, if someNumber.precisionEvaluate() is shortcut for precisionEvaluate(someNumber)
someVar.rand([algorithm])//Doesn't make sense as a member function.. does it?
someVar.randomize([algorithm])
someVar.randRange(number2[, algorithm])
someVar.round()
someVar.sgn()
someVar.sin()
someVar.sqr()
someVar.tan()
{code}
//Decision functions (these should probably be added to all data types?)
{code:java}
someVar.isArray()
someVar.isBinary()
someVar.isBoolean()
someVar.isClosure
someVar.isCustomFunction()
someVar.isDate()
someVar.isDateObject()
someVar.isDateObject()
someVar.isDDX()
someVar.isImage()
someVar.isFile()
someVar.isJSON()
someVar.isLeapYear()
someVar.isLocalhost()
someVar.isNumeric()
someVar.isObject()
someVar.isQuery()
someVar.isSimpleValue()
someVar.isSpreadsheetFile()
someVar.isSpreadsheetObject()
someVar.isStruct()
someVar.isValid()
someVar.isWDDX()
someVar.isXML()
someVar.isXMLAttribute()
someVar.isXMLDoc()
someVar.isXMLElem()
someVar.isXMLNode()
someVar.isXMLRoot()
someVar.lsIsCurrency()
someVar.lsIsDate()
someVar.lsIsNumeric()
{code}
//Conversion functions
{code:java}
someVar.toString()
someVar.toDate() //ToDate() needs added to language (as does ToNumber())
{code}
//Formatting functions
{code:java}
someVar.booleanFormat()
someVar.decimalFormat()
someVar.dollarFormat()
someVar.lsNumberFormat()
someVar.numberFormat()
someVar.yesNoFormat()
{code}
//Additional functions
{code:java}
someVar.chr()
someVar.createDateTime([month[, day[, hour[, minute[, second]]]]])//CF-3374275 added support for createDateTime(year)
someVar.duplicate()
someVar.monthAsString([locale])
someVar.val()
{code}
* - Related URL (see precisionEvaluate() above): https://www.bennadel.com/blog/2044-using-coldfusion-s-precisionevaluate-function-to-perform-big-integer-math.htm (comment from Ben Nadel on Oct 27, 2010 at 10:21 AM)
Attachments:
Comments: