(args)
return inp.to_float().clone().iabs()
Return the absolute value of a number. No-op for strings.
Return the absolute value of a number. No-op for strings.
Return the absolute value of a number . No - op for strings .
def abs_(args):
    """Return the absolute value of a number. No-op for strings."""
    inp, = args
    if isinstance(inp, strings.String):
        # strings pass unchanged
        return inp
    # promote Integer to Single to avoid integer overflow on -32768
    return inp.to_float().clone().iabs()
def abs_ ( args ) : inp , = args if isinstance ( inp , strings . String ) : # strings pass unchanged return inp # promote Integer to Single to avoid integer overflow on -32768 return inp . to_float ( ) . clone ( ) . iabs ( )