I'm trying to do something that seems like it should have a straight forward syntax/function in scala. I just don't know what that is. I'm trying to convert the contained value of an Option (if it is not None) to another type.
Simply I want to know what the code would be if I wanted to implement the following function
def myFunc(inVal:Option[Double]):Option[BigDecimal] = {
//Code I need goes here
}
Note: I am not actually implementing this function, it just is the clearest way for me to demonstrate what I need