I am trying to concatenate three fields into one using Python with the rjust padding function.
My function in the code box is the following:
def AutoSchluessel(gmk, zae, nen):
return "{}0{}{}".format(gmk, str(zae).rjust(7,"0"), str(nen).rjust(5,"0"))
And the Expression is:
flcode = AutoSchluessel( !gmkgcode!, !zaehler!, !nenner!)
What i am getting is for the fields is the following result:
gmkgcode = 5902; zaehler = 32; nenner = 17
flcode = 5902.0000032.0017.0
It should in my opinion though result in something without points (59020000003200017). What am I missing?