js ronda al mil

var myValue = 23452.2;
Math.round(myValue/1000)*1000; //23000
Friendly Hawk