WSQ14 – Calculate e

Hey everybody! In this time, we wrote a code to calculate Euler’s constant or e number. That part was simple, the problem came when we need to stop the programm when we have the precision (decimal point numbers) that we required. To acomplishied that, we use a function called floor which we take from here

http://stackoverflow.com/questions/11208971/round-a-float-to-a-given-precision/11209099#11209099

Anyway, here is the link to my code. Enjoy it!

https://github.com/juanpsantana/WSQs/blob/master/WSQ14.cpp

CC BY 4.0 WSQ14 – Calculate e by Juan Pablo Santana is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.