wrong decimal value from database MySql RRS feed

  • Question

  • I'm not sure why number 9000.00 stored in MySql as Decimal(12,2) is displaying 9 millions in views 1.00 displays 100 (1,00 is correct) 5.77 displays 577 (5,77 is correct)

    I tried

    DisplayFor(m => m.MyNumber)


    Default collation utf8mb4_0900_ai_ci
    Default chartset utf8mb4

    I have a build in production that works perfectly, I don't know if it is a MySql or EF related issue

    Friday, September 4, 2020 2:08 PM


  • Hi Richard Bruner,
    Based on your description, it is mostly related to MySQL. So I suggest you go to MySQL Forum for more professional answer.
    Thank you for your understanding. 
    Best Regards,
    Daniel Zhang

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, September 7, 2020 3:11 AM