create function floattostr(in value float)
returns varchar(20)
begin
return replace('.' with ',' in if(value is null then '' else cast(value as varchar(20))));
end;
select floattostr(0), floattostr(1), if(floattostr(0)<>floattostr(1) then 'correct' else
'error') from table