One sign, two currencies
The ¥ sign is used for both the Japanese yen and the Chinese yuan (renminbi). Both names come from the same word, meaning “round”, and both are written with a Y in the Latin alphabet. When a price could be read either way, use the ISO codes instead: JPY for yen and CNY for yuan. You will also see JP¥ and CN¥, or RMB for the Chinese currency.
Within Japan prices are usually written with the kanji 円 after the number (1,000円), and in China with 元 (100元). The ¥ sign is more common in international and financial contexts.
How to write amounts
The sign goes before the number with no space: ¥1,500. The yen has no smaller unit in everyday use, so yen prices have no decimal point; ¥1,500 is one thousand five hundred yen, not fifteen. The yuan is divided into 10 jiao or 100 fen, so yuan prices can have decimals: ¥12.50.
One bar or two, and the wide version
Some fonts draw the sign with two crossbars and some with one. They are the same character, U+00A5, and the difference is only the typeface. There is also a full-width form ¥ (U+FFE5), which takes the space of a Chinese or Japanese character and is used inside East Asian text so the line stays evenly spaced.
One oddity catches programmers: on Japanese versions of Windows, the backslash in a file path is displayed as ¥, so C:\Users appears as C:¥Users. That goes back to an old Japanese character set that put the yen sign where ASCII has the backslash. More signs are on the Currency Symbols page.