© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
❔ force a ushort value? - C#
C
C#
•
4y ago
•
15 replies
PatrickG
❔ force a ushort value?
if i type for example
var num
= 25L
;
i am forcing a long value
(int64
)
how can i force a ushort in the same way
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
62,470
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
❔ How can I save a byte in a ushort?
C
C# / help
4y ago
Get 16 bit floating point precision as a ushort
C
C# / help
2y ago
Who to force a type
C
C# / help
2y ago