Calculator

JuiceMiner66 1 Reputation point
2021-02-08T19:06:29.7+00:00

Arkadaşlar ben bir hesap makinesi kodladım ve bu makinede Virgüllü toplama ,çıkarma çarpma veya bölme yapamıyorum.Mesela 8,6*7,2 diyorum Makine bunu 8*8,6 olarak
algılayıp çarpıyor.Yardımınız lazım lütfen. - Türkçe


Hi. I designed a Calculator and I cannot multiply, subtract, add or divide by commas in this Calculator. For example, I'm typing 8.6 * 7.2. However, this process is detected as 8 * 8.6. Please help. - English

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,714 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Adrian Bowles 86 Reputation points
    2021-02-10T00:24:15.463+00:00

    I believe it may be a localization issue. In VB.NET the decimal separator is a period and a group separators is a , however in some locales this is not the case and they are different.

    The following discussion details some potential ways to handle it.
    detect-culture-of-number-in-vb-net-i-e-period-or-comma-for-decimal-point-thou

    Seeing your code will help pinpoint the best way to handle it.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.