mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 17:20:53 +01:00
First version of the simplifications.
Change-Id: Idbddb92b6bd098d6b862f5fc4abd741948e15194
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
#include <poincare/float.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
extern "C" {
|
||||
#include <assert.h>
|
||||
}
|
||||
|
||||
#include <poincare/float.h>
|
||||
|
||||
Float::Float(float f) : m_float(f) {
|
||||
}
|
||||
|
||||
@@ -30,3 +33,13 @@ bool Float::valueEquals(Expression * e) {
|
||||
assert(e->type() == Expression::Type::Float);
|
||||
return m_float == ((Float *)e)->m_float;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
int Float::getPrintableVersion(char* txt) {
|
||||
const char* printable = "float number";
|
||||
for(int i=0; printable[i]!='\0'; i++) {
|
||||
txt[i] = printable[i];
|
||||
}
|
||||
return strlen(printable);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user