Answered: numberfield value reading old value, not updated value

When I set the value of a numberfield and then read it back, I get the old value not the new one.
However the UI shows the new value. I'm assuming its either my code is reading back a cached value, or a timing issue.