That'll get you 15. I assume you want 1523. In which case, use this in your snippet:
int x = int(temp*100.0);