Widget Slider how get value before and after release

Sorry for my maybe stupid question.
In my slider virtual widget, i need to save in variable the value before and after release.
when use param.asInt() i know ever last state.
how can I do?
Thank you

Please explain a bit more why this is needed. The value before you start is the value you ended the with the last timeā€¦