is_single_negative_decimal(-3/4) # TRUE
is_single_negative_decimal(0.01) # FALSE
is_single_negative_decimal("hoskdflksfd") # FALSE
is_single_negative_decimal("1.0") # FALSE
is_single_negative_decimal(1:5) # FALSE
Run the code above in your browser using DataLab