AnsweredAssumed Answered

Newbie: Why wouldn't this simple code work?

Question asked by olcoil on Apr 10, 2012
Latest reply on Apr 10, 2012 by bruce.nielsen
Purpose:
I have 1 field in a large table with numbers in mm, want to show in m. Want to use python to multiply by 1000. Want to use the Python Field Calculator for this.

Code:

def func( height ):  return (height*1000)



HEIGHT_MM= func(!HEIGHT_MM)


Result:
the code succeeds (no syntax errors), but nothing happens to the numbers in my field!

Outcomes