modf

Decomposes the given floating point value ,x, into integral and fractional parts,each having the same type and sign as x. Depending on input, function can return scalar, vector or matrix

Arguments

  1. Real or complex value x

Output

Vector: [Fractional part, Integral part]

Examples

modf