memgraph/include/storage/model/properties/float.hpp

20 lines
364 B
C++
Raw Normal View History

#pragma once
#include "storage/model/properties/floating.hpp"
#include "storage/model/properties/double.hpp"
class Float : public Floating<Float>
{
2016-02-21 00:53:09 +08:00
public:
static constexpr Flags type = Flags::Float;
Float(float value) : Floating(Flags::Float), value(value) {}
2016-02-21 00:53:09 +08:00
operator Double() const
{
return Double(value);
}
float value;
};