---
title: isForFoodEnergyUse
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/energyformatter/isforfoodenergyuse
---

# isForFoodEnergyUse

A Boolean value that indicates whether the energy value is used to measure food energy.

## Declaration

```swift
var isForFoodEnergyUse: Bool { get set }
```

## Discussion

Discussion Returns true if the energy is used to measure food energy; otherwise, false. If set to true, EnergyFormatter.Unit.kilocalorie may be represented using “C” instead of “kcal”. By default, this property returns false.

## See Also

### Formatting Energy Strings

- [getObjectValue(_:for:errorDescription:)](foundation/energyformatter/getobjectvalue(_:for:errordescription:).md)
- [numberFormatter](foundation/energyformatter/numberformatter.md)
- [string(fromJoules:)](foundation/energyformatter/string(fromjoules:).md)
- [string(fromValue:unit:)](foundation/energyformatter/string(fromvalue:unit:).md)
- [unitString(fromJoules:usedUnit:)](foundation/energyformatter/unitstring(fromjoules:usedunit:).md)
- [unitString(fromValue:unit:)](foundation/energyformatter/unitstring(fromvalue:unit:).md)
- [unitStyle](foundation/energyformatter/unitstyle.md)
