To put it simply:
CSTR (10.3) = "10.3" STR (10.3) = "10.3"
CSTR (-10.3) = "-10.3" STR (-10.3) = "-10.3"
If you use STR to convert a positive number to a numeric string
During bit-by-bit processing, the number of cycles is once more.
In addition:
According to msdn, the following CSTR parameters are generally of a wide range of types: Boolean, date, empty, and numeric values can be converted to strings.
The post-str parameter is usually a numerical value.
However, based on the actual test, it is not necessary.
See the following example:
Private sub commandementclick ()
Dim t as Boolean
Print STR (t) 'Output false (with spaces in front)
Print CSTR (t) 'Output false (no space in front)
End sub
The output result is:
False
False
Therefore, STR will always add a digit before the parameter to store the symbol bit. Of course, if the parameter is negative and it already contains a negative number, it will not be added.
For example, STR ("-10.3") = "-10.3"