What does this mean "Using Strings for uint256" in ERC721-Contracts?

Hi. I saw the following line in ERC721URIStorage contract:

abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

Although I am familiar with libraries and “using for” statements, I am totally lost with this one.

Why is Strings used for uint256 and what does this mean in particular here for tokenIds?

Many thanks for any help! :heartpulse:

Welcome to the community.

This is to say, an uint256 variable can call up functions in the Strings library. One example can be, value.toString(). An uint256 can be easily converted into a string. How convenient.

2 Likes