mod 1.0 == 0 не работает т.к. mod работает только с int'ами
If name.type == int
Ти з україни?
Error: type mismatch Expression: typeof(k) == int [1] typeof(k): typedesc[float] [2] int: typedesc[int] Expected one of (first mismatch at [position]): [1] proc ==(x, y: bool): bool [1] proc ==(x, y: char): bool [1] proc ==(x, y: cstring): bool [1] proc ==(x, y: float): bool [1] proc ==(x, y: float32): bool [1] proc ==(x, y: int): bool [1] proc ==(x, y: int16): bool [1] proc ==(x, y: int32): bool [1] proc ==(x, y: int64): bool [1] proc ==(x, y: int8): bool [1] proc ==(x, y: pointer): bool [1] proc ==(x, y: string): bool [1] proc ==(x, y: uint): bool [1] proc ==(x, y: uint16): bool [1] proc ==(x, y: uint32): bool [1] proc ==(x, y: uint64): bool [1] proc ==(x, y: uint8): bool [1] proc ==[Enum: enum](x, y: Enum): bool [1] proc ==[I, T](x, y: array[I, T]): bool [1] proc ==[T: proc | iterator](x, y: T): bool [1] proc ==[T: tuple | object](x, y: T): bool [1] proc ==[T](x, y: openArray[T]): bool [1] proc ==[T](x, y: ptr T): bool [1] proc ==[T](x, y: ref T): bool [1] proc ==[T](x, y: seq[T]): bool [1] proc ==[T](x, y: set[T]): bool
ну и тем более переменная у меня точно float
Ну поищи в инете, я лижу уже в теплой кроватке
typeof(k) is int
Обсуждают сегодня