What does the dot preceeding an operator mean in C? -


i'm not familiar c , i'm trying translate piece of code found language. part, it's been rather intuitive encountered bit of code in subtraction operator preceeded fullstop, this:

double c; c = 1.-exp(a/b) 

i searched can find dot operator standard property access of object. i've encountered '.-' operator in other langauges denoted element-wise operation on array, in code none of elements arrays; of a, b , c doubles.

it instructs compiler treat literal number floating-point number. 1. = 1.0

  • in case c = 1.-exp(a/b) equivalent c = 1.0 -exp(a/b)

Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -