Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: USBHost USBHostXpad mbed-rtos mbed
Diff: utils.cpp
- Revision:
- 0:79485480cd7e
- Child:
- 3:c1620db50a75
diff -r 000000000000 -r 79485480cd7e utils.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/utils.cpp Thu Nov 13 23:20:02 2014 +0000
@@ -0,0 +1,9 @@
+#include "utils.h"
+
+double ghettoFloor(double d){
+ return double((long long)d);
+}
+double round(double d)
+{
+ return ghettoFloor(d + 0.5);
+}
