Define a type scalar to replace double.