Nope. Having '1' as the condition in the ternary operator, causes 'var' to never be evaluated (to avoid accidental operations with getters and such), but the compiler allows the 'var' to affect if the '1' is treated as a float or an int. Here's a breakdown:
if var is a float...
(1?1:var)/2
...becomes...
(1.0/2)
...which equals 0.5 and is considered
true when evaluated. But if var is an int...
(1?1:var)/2
...becomes...
(1/2)
...which equals 0 and is considered
false when evaluated