| /* |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| */ |
| <html> |
| <head> |
| <title>FreeMarker: Number Literal Test</title> |
| </head> |
| <body> |
| |
| <p>A simple test follows:</p> |
| |
| <p>Hello, world!</p> |
| |
| <p>Now perform a number assignment:</p> |
| |
| 1,3 |
| |
| |
| My number is: 1,8 |
| My float is: 1.800000 |
| The int part is: 1 |
| |
| |
| 1.83 |
| |
| <p>Now use numbers in assignment</p> |
| |
| 6 |
| |
| 8 |
| |
| <p>Try numbers in tests</p> |
| |
| MyMessage is not 152, its: 8. |
| |
| <if (mymessage > 5)> |
| MyMessage is greater than five. |
| </if |
| |
| MyMessage is: 8. |
| |
| <p>Now for numbers in dynamic keys:</p> |
| |
| |
| one |
| three |
| |
| <p>Numbers in hashes:</p> |
| |
| twelve |
| twelve |
| twelve |
| |
| |
| <p>Numbers in method calls:</p> |
| |
| Single argument value is: 1 |
| Single argument value is: 1 |
| Single argument value is: 12 |
| Single argument value is: 3 |
| Single argument value is: 3 |
| |
| </body> |
| </html> |