Changed determinantscalar from int to double