I am writing a smart contract that uses a multi index table with a member type double.
//@abi table tbltest i64
struct test{
uint64_t uid;
double margin;
uuid_t primary_key() const { return uid; }
EOSLIB_SERIALIZE(test,(uid)(margin))
};
When I try to generate an abi file using eosiocpp tool I get the following error
root@eos# eosiocpp -g test.abi test.cpp
3583446ms thread-0 main.cpp:105 main ]
999999 abi_generation_exception: Unable to generate abi
false: types can only be: vector, struct, class or a built-in type. (double)
type":"double"}
thread-0 abi_generator.cpp:606 add_type
{}
thread-0 abi_generator.cpp:290 handle_decl
If I change the type to uint64_t it works. But It generates an error if I use float or double. Why abi-generator does not support these types?