Naming a method that returns 0 for negative values -


i'm writing such method library. can't seem find name nor reference of having named such function before.

what name it?

i call clipper noun , clip verb.

the operation you're describing negativeclip or subzeroclip. of course have generic function 2 or 3 arguments. depending on needs see lowerboundclip or floorclip or bottomclip being paired upperboundclip or ceilingclip or topclip instead. in couple of word clip sounds redundant.

words bound, bounds, bounded, boundary used in mathematics think possible function names i'm not sure clear in meaning. , binding used in other programming topics there's potential confusion also.


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -