Fix argument declaration for floating point numbers

Previously because of %d in the string, floating point numbers would have been initialized with floor(default) instead of default. This led to wrong initialization in torch.bernoulli (0 instead of 0.5)