bash sum floating point numbers

C++
bc <<< '0.3333+0.6666' # Get sum of floats in bash
0.99bc <<< '0.3333+0.6666' # Get sum of floating points in bash
0.99
Source

Also in C++: