A function f(x) is defined as f(x) = x – [x], where [.] represents

a-function-f-x-is-defined-as-f-x-x-x-where-represents

A function f(x) is defined as f(x) = x – [x], where [.] represents GIF then __________

A. f(x) will be intergral part of x

B. f(x) will be fractional part of x

C. f(x) will always be 0

D. none of the mentioned

The question was asked during an internship interview.

My question is based upon Floor and Ceiling Function topic in chapter Basic Structures: Sets, Functions, Sequences, Sums and Matrices of Discrete Mathematics

The correct choice is B. f(x) will be fractional part of x

Explanation: A integral part of a number is subtracted from that number we are left with the fractional part of that number.