The film is "The Million Pound Note" (1953), a British comedy based on Mark Twain's 1893 short story "The Million Pound Bank Note".
Henry Adams (Gregory Peck), an American in London, is given a £1,000,000 note by two wealthy brothers as a social experiment. Every time he reaches into his pocket, he pulls out this single note—which he cannot cash but uses as credit to live lavishly, exposing hypocrisy and greed.
Available on DVD/streaming (often public domain). A witty satire on capitalism and class.