Expression Binding Functions - Dates are now Floating Point Numbers in Vision

I’ve noticed the Expression Bindings for dates return doubles now. For example:

getYear({Root Container.Date Range.endDate})

Would return 2019.0 as in 7.9 it would return 2019.

Just wondering if it’s going to remain like this or when would it return 2019.5 for example?

image

I believe the “.0” you are seeing is only a result of the casting of the value to a “double”. When a casting is performed it changes the format of the value, but not the value itself, and so you should not expect anything other than a “.0” when getting years. I’m not sure why we moved to casting years as doubles in expressions, but the value you’re getting is correct for the double type.

1 Like