2016-02-14 00:59:48 +08:00
|
|
|
#pragma once
|
|
|
|
|
2016-08-10 16:39:02 +08:00
|
|
|
#include "storage/model/properties/floating.hpp"
|
|
|
|
#include "storage/model/properties/double.hpp"
|
2016-02-14 00:59:48 +08:00
|
|
|
|
|
|
|
class Float : public Floating<Float>
|
|
|
|
{
|
2016-02-21 00:53:09 +08:00
|
|
|
public:
|
2016-02-14 00:59:48 +08:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2016-02-14 00:59:48 +08:00
|
|
|
float value;
|
|
|
|
};
|