displaying top 100 results
Comment on CFFiddle for Array, String, and Math functions by chrisg57685480
Portal Topic CFFiddle for Array, String, and Math functions
CFFiddle for Array, String, and Math functions
Comment on CFFiddle for Array, String, and Math functions by Saurav Ghosh
Comment on CFFiddle for Array, String, and Math functions by Saurav Ghosh
Comment on CFFiddle for Array, String, and Math functions by James Moberg
Aaron Neff Hi Ashudeep,
Very nice post! Couple comments:
1) format() is, thankfully, just a member function (not BIF)
2) precisionEvaluate() is also a numeric member function (useful for converting to java.math.BigDecimal) Ex:
myVar1 = 10;
myVar2 = myVar1.precision
Tracker Comment Comment on Weird NumberFormat Bug by External U.
://www.bennadel.com/blog/2044-using-coldfusion-s-precisionevaluate-function-to-perform-big-integer-math.htm
Thanks!,
-Aaron
Tracker Issue Incorrect Date Calculation When Using DateDiff()
7003891 CF-4207741 Language : DateTime Functions Incorrect Date Calculation When Using DateDiff() Problem Description:
ColdFusion improperly calculates the difference between two dates if the date is before 1970.
Steps to Reproduce:
writeDump( dateDiff( 'd', '6/1/1420', '12/31/1967' ) );
Actual
Tracker Issue Incorrect Date Calculation When Using DateDiff()
7004065 CF-4207740 Language : DateTime Functions Incorrect Date Calculation When Using DateDiff() Problem Description:
ColdFusion improperly calculates the difference between two dates if the date is before 1970.
Steps to Reproduce:
writeDump( dateDiff( 'd', '6/1/1420', '12/31/1967' ) );
Actual
Tracker Issue [ANeff] Bug for: if bif(simpleValue) works then simpleValue.memberFunction() member functions must also work
functions work on java.lang.String, java.lang.Integer, coldfusion.runtime.CFDouble and java.math.BigDecimal
- CF date member functions work on java.lang.String and coldfusion.runtime.OleDateTime
Member functions must be type-casting, not type-specific, because:
1) CF is a loosely-typed language. Developers
Tracker Issue [ANeff] ER for: Numeric member functions
[, 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
Tracker Comment Comment on Fix the isValid('integer') function or Provide a Version that actually does work by External U.
Comment on Fix the isValid('integer') function or Provide a Version that actually does work by External U.
Tracker Issue [ANeff] Bug for: member function shameful workarounds
math. None of this should break simply by upgrading from BIFs to member functions.
userInput = createDateTime(2018,1,1,2,3,4)
libs = [new UDFLibraryV1(), new UDFLibraryV2(), new UDFLibraryV3()]
libs.each(function(lib) {
try {writeOutput(lib.len(userInput))}
catch(any e) {write