Очередная фича...
Очередная фича... от билли.
Имеем простое выражение:
DR.Rack = "packed: " + Math.Round(qtyRack / (qty / 100.), 1) + " %";
И оно "содержит ошибку" - требуется идентификатор... после точки в 100.
Фиксится дописыванием нуля после точки, но... неприятно...
Ну как то тут я тоже не вижу подобной возможности. Может ты какого то другого языка накурился ?
https://docs.microsoft.com/de-de/dotnet/csharp/language-re...
ECMA-334
7.4.5.4 Real literals
Real literals are used to write values of types float, double, and decimal.
real-literal::
decimal-digits . decimal-digits exponent-partopt real-type-suffixopt
. decimal-digits exponent-partopt real-type-suffixopt
decimal-digits exponent-part real-type-suffixopt
decimal-digits real-type-suffix
exponent-part::
e signopt decimal-digits
E signopt decimal-digits
sign:: one of
+ -
real-type-suffix:: one of
F f D d M m
If no real-type-suffix is specified, the type of the real-literal is double. Otherwise, the real-type-suffix
determines the type of the real literal, as follows: