How to move decimal to the right?

1 view (last 30 days)
Shayma Al Ali
Shayma Al Ali on 4 Oct 2021
Commented: Walter Roberson on 4 Oct 2021
I have a time variable that is supposed to formatted as yymmdd.xxxx where xxxx is the fraction of the day. However, the variable is displayed as y.ymmddxxxxx. How do I move the decimal to the right so its formatted correctly?
Walter Roberson
Walter Roberson on 4 Oct 2021
Sounds like a floating point time variable... this problem would not happen with datetime objects.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by