-6

I tried using fmod command but it gives me answer as 1.

fmod(1,10). this gives me 1.

I want an answer 0.1 when 1 is divided by 10.

1 Answers1

1

It is not a division actually

float fmod (float numer, float denom); Returns the floating-point remainder of numer/denom.

In your case remainder is 1.