Bug - Not A Bug truncate is redundant

Catch-22

Active member
So it seems to me that the ASH truncate function is pretty useless.

Everything you could ever want to accomplish with truncate() could be accomplished using to_int(), the only benefit I can see in using truncate() over to_int() would be that it might work out a few microseconds faster at conversion if your DataType is already float.

I don't really know how you'd fix this, if at all.
 

Catch-22

Active member
Not worth removing or repurposing truncate? It would be nice if truncate() worked with bigger floats and returned a string instead of an integer.
 

Bale

Minion
Changing that would break existing scripts. Lack of backwards compatibility is a bad thing so there has to be a serious advantage before it is considered.

The redundancy doesn't hurt anyone.
 
Top