Floating point issue

Handled a floating point issue.
Cleared unneeded spaces.
Using dup instead of another initialization.