blob: 906c6292f99d169f64ac59cc020c84dc7d4eed30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
bool isOverThousand(int n)
{
//! [integer literal with separator]
if (n > 1'000)
return true;
//! [integer literal with separator]
return false;
}
|