powered by
Returns formatted string following addition/subtraction.
mathString(str1, str2, operation = "-", numDigits = 0, unit = "ms")
string
"+", "-", "*", "/"
number 0 (default)
"ms" , "mV" , "mv", or "%"
# Example 1: string <- mathString("550 ms", "480 ms", "-") # Example 2: string <- mathString("2.34", "1.65", "+", numDigits = 2, unit = "mV")
Run the code above in your browser using DataLab