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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -