how we can get the number before the period..

Example

$123.45

i want only 123, how can trim $ and .45