#include <stdio.h>
int main() {
char postdata[] = "field1=";
float mynumber = 123.12;
char buffer[32];
sprintf(buffer
, "%s%.1f", postdata
, mynumber
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGNoYXIgcG9zdGRhdGFbXSA9ICJmaWVsZDE9IjsKICAgIGZsb2F0IG15bnVtYmVyID0gMTIzLjEyOwogICAgY2hhciBidWZmZXJbMzJdOwogICAgc3ByaW50ZihidWZmZXIsICIlcyUuMWYiLCBwb3N0ZGF0YSwgbXludW1iZXIpOwogICAgcHJpbnRmKGJ1ZmZlcik7CiAgICByZXR1cm4gMDsKfQ==