Update diceresult.cpp

adding new scalar computation