fix fopen mode string
fixed fraction derivation in SetFloat