You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seen as part of #6530, where an ad hoc solution to use val.r instead of val is used to unblock that PR.
AFAICT this is not strictly a bug because snprintf() is currently doing this (using val.r) implicitly:
DT=data.table(a=1:10)
set(DT, 2L, 'a', 1+2i)
# Warning message:# In set(DT, 2L, "a", 1 + (0+2i)) :# 1.000000 (type 'complex') at RHS position 1 either imaginary part discarded or real part truncated (precision lost) when assigning to type 'integer' (column 1 named 'a')
set(DT, 2L, 'a', 1+3i)
# Warning message:# In set(DT, 2L, "a", 1 + (0+3i)) :# 1.000000 (type 'complex') at RHS position 1 either imaginary part discarded or real part truncated (precision lost) when assigning to type 'integer' (column 1 named 'a')
set(DT, 2L, 'a', 0+3i)
# Warning message:# In set(DT, 2L, "a", 0 + (0+3i)) :# 0.000000 (type 'complex') at RHS position 1 either imaginary part discarded or real part truncated (precision lost) when assigning to type 'integer' (column 1 named 'a')
But I believe the error message is not correct/as helpful as it could be if constructed more carefully.
The text was updated successfully, but these errors were encountered:
Seen as part of #6530, where an ad hoc solution to use
val.r
instead ofval
is used to unblock that PR.AFAICT this is not strictly a bug because
snprintf()
is currently doing this (usingval.r
) implicitly:But I believe the error message is not correct/as helpful as it could be if constructed more carefully.
The text was updated successfully, but these errors were encountered: