I'm not familiar with C and I'm trying to translate a piece of code I found to another language. For the most part, it's been rather intuitive but now i encountered a bit of code in which a subtraction operator is preceeded by a fullstop, like this:
C = 1.-exp(A/B)
It instructs the compiler to treat that literal number as a floating-point number.
1. = 1.0
C = 1.-exp(A/B)is equivalent to
C = 1.0 -exp(A/B)